home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:15918 comp.std.c++:1513
- Newsgroups: comp.lang.c++,comp.std.c++
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: PROPOSAL: Hidden private parts of classes
- Message-ID: <1992Nov7.155248.23401@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <1992Oct30.113234.15010@daimi.aau.dk> <1csnjaINNqa0@hpsdlss3.sdd.hp.com> <klamer.720538594@mi.el.utwente.nl>
- Date: Sat, 7 Nov 1992 15:52:48 GMT
- Lines: 23
-
- In article <klamer.720538594@mi.el.utwente.nl> klamer@mi.el.utwente.nl (Klamer Schutte) writes:
- >]But such knowledge is not necessary; the LINKER can decide the layout of
- >]data in memory! But alas, that would require new smarter linkers, and
- >]then you couldn't use a cfront compiler.
- >
- >OK, that holds for global / static variables. But how for auto variables?
- >These generally are efficient to use, but to be efficient, their size
- >must be known at compile time.
-
- Why? Why cant the size be calculated by a smart linker
- at link time? Why cant assembly output be made by the compiler
- with 'sizeof_someobject' as a symbol yet to be determined?
-
- >and thus can only a pointer to an object on the heap be used.
-
- NO, and I have SEEN it done otherwise in a Modula compiler,
- I used it and it worked.
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-