home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4542 < prev    next >
Encoding:
Text File  |  1992-07-24  |  1.5 KB  |  36 lines

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