Xref: utzoo comp.object:571 comp.lang.c++:5763 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!lll-winken!arisia!sgi!shinobu!odin!delrey!shap From: shap@delrey.sgi.com (Jonathan Shapiro) Newsgroups: comp.object,comp.lang.c++ Subject: Re: Continuations Message-ID: <1713@odin.SGI.COM> Date: 1 Dec 89 04:26:26 GMT References: <2664@bingvaxu.cc.binghamton.edu> <9624@pyr.gatech.EDU> <1623@odin.SGI.COM> <1989Nov28.183816.15252@odi.com> <9964@june.cs.washington.edu> <1989Nov29.225826.19483@odi.com> <10008@june.cs.washington.edu> Sender: news@odin.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 25 In article <10008@june.cs.washington.edu> peterd@june.cs.washington.edu (Peter C. Damron) writes: >4. C and C++ have first class functions. Functions can be passed as > parameters, returned as function values, and assigned to variables. >Hope this helps to clear up any mis-understandings, >Peter. Actually, Peter, it creates one. C and C++ do not have fist class functions. Functions cannot be passed as values. Function pointers can, whcih is a somewhat different thing. To be first class, it must be possible to treat functions as *values* rather than as *labels*. For example, the following is a syntax error: int foo(int); int bar(int); foo = bar If functions were first class, this would be altogether legal. Otherwise, your posting was correct. Jonathan Shapiro Silicon Graphics, Inc. Brought to you by Super Global Mega Corp .com