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