home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!news.belwue.de!eratu.rz.uni-konstanz.de!nyx.uni-konstanz.de!phfrom
- From: phfrom@nyx.uni-konstanz.de (Hartmut Frommert)
- Subject: Re: Constants in an Object
- Message-ID: <phfrom.223@nyx.uni-konstanz.de>
- Sender: usenet@eratu.rz.uni-konstanz.de
- Organization: Dept. of Physics, University of Constance
- References: <1992Jul19.073015.1199@ecst.csuchico.edu> <phfrom.183@nyx.uni-konstanz.de> <BrqM02.BtG@watdragon.waterloo.edu>
- Date: Fri, 24 Jul 1992 15:27:50 GMT
- Lines: 24
-
- dmurdoch@watstat.waterloo.edu (Duncan Murdoch) writes:
-
- >phfrom@nyx.uni-konstanz.de (Hartmut Frommert) writes:
- [..]
- HF>>const
- HF>> MyObject: TMyObject = (345);
- [..]
- DM> MyObject: TMyObject = (Myfield: 345);
-
- Oops-- I was too sloppy, thanx for correction.
-
- >The constructor call doesn't allocate memory, it fills in the VMT field.
- >The compiler does that for you in a constant object, so no constructor
- >call is needed. This is discussed in Chapter 5 of the Programmer's Guide.
-
- Thanx for this hint. I confused with the particular constructor
- *TObject.Init*, sorry.
-
- --
- Hartmut Frommert, LS Dehnen, Physics, | E-Mail: <phfrom@dknkurz1.bitnet>
- Univ of Constance, P.O.Box 55 60, | or <phfrom@nyx.uni-konstanz.de>
- D-W-7750 Konstanz, Germany | + SAVE THE WHALES ! BOYCOTT NORWAY ! +
- Phone: +49-(0)7531-88-3747 | + Whales R intelligent. Whale killers not. +
- + Whale killing is murder. Eating whales is cannibalism. Eat whale killers. +
-