home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!darwin.sura.net!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Language extensions for run-time type identification
- Message-ID: <1992Jul25.181214.26818@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: <rmartin.711829160@thor> <1992Jul23.175944.9090@microsoft.com> <1992Jul25.070247.3925@uunet.uu.net!mole-end>
- Date: Sat, 25 Jul 1992 18:12:14 GMT
- Lines: 38
-
- In article <1992Jul25.070247.3925@uunet.uu.net!mole-end> mat@uunet.uu.net!mole-end writes:
- >
- >Eh? Under the current proposal, if the class has no ~const members
- >AND IF IT HAS NO CONSTRUCTORS OR DESTRUCTORS it can be placed in ROM.
- >Complex should probably have constructors or destructors, so it is left
- >out, but that has nothing to do with Humpty Alice Dumpty.
- >
- >On the other hand, under the current proposal, with no ~const members,
- >casting away const for classes can be reduced to the unsupported sort
- >of thing you are asking for. The class declaration, by default, supports
- >bitwise const; with the appropriate declarations the meaning of const is
- >weakened for that class. It's up to the implementor of the class.
-
- Can you have BOTH ~const member variables AND functions?
-
- >
- >What more do you need?
-
- It would be nice to be able to have constructors for
- romable objects. They would have to be restricted to the sorts
- of things that the COMPILER can EXECUTE at compile time.
-
- ROM double x=sin(1.3);
- ROM complex y=sin(complex(2,3.4));
-
- I guess this is too much to ask for, but you did ask
- "What more do you need". I dont need the above but it would
- be desirable (saves me calculating the complex sine on
- a calculator, and constructing an image and then
- fiddling with the placement form of operator new)
-
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-