home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7763 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.4 KB

  1. Path: sparky!uunet!gatech!emory!wupost!spool.mu.edu!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!poly-vlsi!music.mus.polymtl.ca
  2. From: CT80@music.mus.polymtl.ca (Steph)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: TVision : BUG in my head or in TV?
  5. Message-ID: <30DEC92.14039571.0035@music.mus.polymtl.ca>
  6. Date: 30 Dec 92 17:59:58 GMT
  7. References: <30DEC92.02825818.0033@music.mus.polymtl.ca> <dmurdoch.262.725736007@mast.queensu.ca>
  8. Sender: usenet@music.mus.polymtl.ca
  9. Organization: Ecole Polytechnique de Montreal
  10. Lines: 22
  11.  
  12. In article <dmurdoch.262.725736007@mast.queensu.ca> dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
  13. >In article <30DEC92.02825818.0033@music.mus.polymtl.ca> CT80@music.mus.polymtl.ca (Steph) writes:
  14. >>What happens is this : I found out (after many bugs with this), that
  15. >>EndOfStatic (my before-adding-spaces-to-AText-length) is set to 0
  16. >>after the call to TStaticText.Init!  Why is this so?
  17. >
  18. >This is a nasty surprise designed into TurboVision.  TObject.Init zeroes out
  19. >all fields of any descendant.  It's not done that way in OWL, and shouldn't
  20. >be in TurboVision, but Borland won't change it now because they're afraid of
  21. >breaking existing code.
  22. >
  23. >Duncan Murdoch
  24. >dmurdoch@mast.queensu.ca
  25. >.
  26. >.
  27.  
  28. Well, at least I'm not crazy!  Hmmm, how can TObject.Init zero out
  29. fields of descendant fields?  How can it know what its descendant
  30. fields will be?  Oh well.  Thanks a lot, I guess I'll have to build
  31. around it then!
  32.  
  33. Steph.
  34.