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: Give me safe C++
- Message-ID: <1992Dec17.192301.23525@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: <Bz2nDF.7B6@fiu.edu> <1992Dec12.145403.26483@ucc.su.OZ.AU> <1992Dec14.190553.14838@mole-end.matawan.nj.us>
- Date: Thu, 17 Dec 1992 19:23:01 GMT
- Lines: 45
-
- In article <1992Dec14.190553.14838@mole-end.matawan.nj.us> mat@mole-end.matawan.nj.us writes:
- >> So when language designers propose restrictions, one must
- >> carefully weigh up the pros and cons: most restrictions also
- >> grant freedom. ...
- >
- >Absolutely. But some languages would give you the virtual functions and
- >take away the function pointers!
- >
- >The point is, I think, having the right tools for the job at hand. Your
- >high-level tools should be good enough that you'll never think of using
- >anything else for a job they can do. But when they can't do the job--or
- >more likely, a small part of the job--you shouldn't have to forsake your
- >high-level tools entirely as a punishment for once using a down-and-dirty
- >approach.
- >
- >And _that_ , I think, is one of great virtues of C++. Whether you think
- >of it as `seamless' or just forgiving, it's there.
-
- So, I feel unhappy when C/C++ takes away abilities
- I have as an assembler programmer. I am especially annoyed
- that NESTED FUNCTIONS are not supported.
-
- My very hardware (486) has direct support, and their
- easily implemented on other machines with a display stack,
- for example. While they were overused in Pascal, they are
- quite handy. How can one call C++ a block structured
- language otherwise? Anyone else for nested functions? Against?
-
- Next, I feel NO language has addressed the concept
- of coroutines (except possibly Simula?). C provides
- no simple exchange of control mechanism, although one
- has to admit they can be emulated using objects in C++.
- Yet many machines provide this facility, usually via
- some exchange and link instruction.
-
- (I admit I dont know how to devise a coroutine
- construct in a language, except for the simple case of
- filters. But I cant be an expert at everything can I :-)
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-