home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.modula3
- Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!papresco
- From: papresco@undergrad.math.waterloo.edu (Paul Prescod)
- Subject: Re: references, objects & m3
- Message-ID: <C1E30F.vx@undergrad.math.waterloo.edu>
- Organization: University of Waterloo
- References: <C1BsMI.5Ay@undergrad.math.waterloo.edu> <MOSS.93Jan24164146@CRAFTY.cs.cmu.edu>
- Date: Mon, 25 Jan 1993 03:00:07 GMT
- Lines: 16
-
- In article <MOSS.93Jan24164146@CRAFTY.cs.cmu.edu> moss@cs.cmu.edu writes:
- >I don't understand why you're using REF OBJECT ... END instead of just OBJECT
- >... END. The latter is implementation essentially as REF RECORD ... END, but
- >with the additional semantics of OBJECT method invocation, subtyping, etc. You
- >should probably just delete the level of REF in your binary tree stuff. Maybe
- >you want somehting like this:
-
- Thanks for your help. Someone else pointed out to me that objects ARE
- references.
-
- I'm not sure if I like that. For instance, how do I copy an object?
- The copy will point to the same data fields, right?
-
- Also is there anyway to auto-initialize/auto-destroy objects as in C++
- with constructors and destructors?
-
-