home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!raymond
- From: raymond@Xenon.Stanford.EDU (Eric A. Raymond)
- Subject: Nested Fn's (or Displays) (was Re: Give me safe C++)
- Message-ID: <raymond.724711771@Xenon.Stanford.EDU>
- Sender: news@CSD-NewsHost.Stanford.EDU
- Organization: CS Department, Stanford University, California, USA
- References: <Bz2nDF.7B6@fiu.edu> <1992Dec12.145403.26483@ucc.su.OZ.AU> <1992Dec14.190553.14838@mole-end.matawan.nj.us> <1992Dec17.192301.23525@ucc.su.OZ.AU>
- Date: 18 Dec 92 20:49:31 GMT
- Lines: 16
-
- maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- > 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?
-
- Hardware support does not mean that it will be efficient in the
- general case. It also makes the compiler a bit more involved (but
- that's not a veery good argumen). I think there is also a tradeoff
- between the generality of fn pointers (pass them? return them?) and
- displays.
-