home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.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: Handling of operator . pro
- Message-ID: <1992Aug12.145148.9597@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: <1992Aug9.205839.9139@ucc.su.OZ.AU> <713558730snx@trmphrst.demon.co.uk>
- Date: Wed, 12 Aug 1992 14:51:48 GMT
- Lines: 45
-
- In article <713558730snx@trmphrst.demon.co.uk> nikki@trmphrst.demon.co.uk (Nikki Locke) writes:
- >
- >In article <1992Aug9.205839.9139@ucc.su.OZ.AU> maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- >
- >[My summary]
- >He said in a previous article - casts should be banned. Except for casts
- >to and from voids (because you need them for foreign interfaces).
- >
- >I said some casts were necessary.
- >
- >He kindly explained that the "casts" I said were necessary were in fact
- >"conversions", not casts at all.
- >
- >My conclusion - yes, I would love a compiler where all casts produced
- >messages from the compiler (but conversions did not).
-
- Actually, one might want some conversions flagged too,
- especially the implicit ones, and especially the 'demotions'.
-
- Although some have flamed PL/1, it made up for its
- complexity in some ways by an superb reporting system. It
- could report almost anything, up to 10 reports including
- complete cross-reference maps, details of all conversions,
- expansion of factored types, etc. Used lots of trees though.
-
- Ever wondered *which* overloaded function got
- called?
- >
- >I doubt that making such messages errors, rather than warnings, would ever
- >be possible - it would break too much existing (bad ?) code.
-
- How about a 'severe warning' then :-)
- >---
- >Nikki Locke | | nikki@trmphrst.demon.co.uk
- >Trumphurst Ltd. | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
- >PC and Unix consultancy | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
- >trmphrst.demon.co.uk is NOT connected with ANY other sites at demon.co.uk.
- >Demon.co.uk is a dial-up subscription access point to the Internet.
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-