# Operators

"Robert J. Brown" (rj@eli.wariat.org)
Thu, 11 Apr 1996 21:13:01 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    >>>>> "Jefferson" == Jefferson M Dubrule <Jefferson.M.Dubrule@dartmouth.edu> writes:

        Jefferson> I've been planning to add it to DartMOOth.  I've got a
        Jefferson> short document explaining it.  Now what would be even
        Jefferson> cooler, would be to have "x = foo + bar" call
        Jefferson> foo:_plus(bar), and store the result in foo.  I was
        Jefferson> working on that, however, I was stumped by the concept
        Jefferson> of "temporary objects", and finally gave up.  A shame,
        Jefferson> though, I would have liked the functionality.

        Jefferson> -manta

    C++ has the idea of a "copy constructor" and uses it to instantiate
    temporary objects on the stack frame of the currently active
    procedure.  These objects have their destructor invoked when that
    procedure exits, since that is the end of the lifespan of the
    temporary object.

    --
    -----------  "...  And the men went up and viewed Ai."  [Jos 7:2]  -----------
    Robert Jay Brown III  rj@eli.wariat.org  http://eli.wariat.org  1 847 705-0370
    Elijah Laboratories Inc;  759 Independence Drive;  Suite 5;  Palatine IL 60074
    -----  M o d e l i n g   t h e   M e t h o d s   o f   t h e   M i n d  ------