From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3471634bf10bf8d X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: private type discriminants ignored? Date: 1998/04/30 Message-ID: <199804301352.PAA20159@basement.replay.com>#1/1 X-Deja-AN: 349061091 Content-Transfer-Encoding: 7bit References: X-001: Replay may or may not approve of the content of this posting X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Content-Type: text/plain; charset=us-ascii Organization: Replay Associates, L.L.P. Mail-To-News-Contact: postmaster@nym.alias.net Newsgroups: comp.lang.ada Date: 1998-04-30T00:00:00+00:00 List-Id: <35460201.ED1315C4@hso.link.com> <354612AF.41C6@hso.link.com> <35468F93.C371940@hso.link.com> On Wed, 29 Apr 1998 22:30:08 GMT, robertduff@world.std.com (Robert A Duff) wrote: > ... > For such variables a compiler will either allocate the max size, or use > the heap implicitly to grow and shrink the thing behind the scenes. I > prefer the former implementation in a fairly low-level, machine-oriented > language like Ada. On the other hand, the deallocate/reallocate scheme > gives useful flexibility. On the third hand, the first compiler I used -- third hand! > that tried that scheme had a bug -- if you renamed a component of such a > record, the compiler would store the address of the renamed component, > but then when the discriminant changed, the whole record would move, and > the renaming would be a dangling pointer. I believe at least one other > compiler did it right, by doing the dealloc/realloc thing on just the > parts that change size depending on the discrim (and you're not allowed > to rename those components). > > ... Now we know the truth: Robert A. Duff is a Motie! Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/