Related articles |
---|
[36 earlier articles] |
Re: simple vs complex languages nmm1@cus.cam.ac.uk (2003-06-05) |
Re: simple vs complex languages nmm1@cus.cam.ac.uk (2003-06-05) |
Re: simple vs complex languages chase@TheWorld.com (David Chase) (2003-06-05) |
Re: simple vs complex languages adamo+news@dblab.ece.ntua.gr (Yiorgos Adamopoulos) (2003-06-05) |
Re: simple vs complex languages david.thompson1@worldnet.att.net (Dave Thompson) (2003-06-05) |
Re: simple vs complex languages lex@cc.gatech.edu (Lex Spoon) (2003-06-05) |
Re: simple vs complex languages zivca@netvision.net.il (2003-06-08) |
Re: simple vs complex languages bear@sonic.net (2003-06-08) |
Re: simple vs complex languages lex@cc.gatech.edu (Lex Spoon) (2003-06-20) |
From: | zivca@netvision.net.il (Ziv Caspi) |
Newsgroups: | comp.compilers |
Date: | 8 Jun 2003 22:00:47 -0400 |
Organization: | Compilers Central |
References: | 03-04-095 03-05-013 03-05-184 03-05-212 03-06-053 |
Keywords: | design |
Posted-Date: | 08 Jun 2003 22:00:47 EDT |
<david.thompson1@worldnet.att.net> wrote:
>> >[In the versions of Lisp that I know, a function doesn't have to be
>> >declared or defined until its called. That can make development a lot
>> >easier. -John]
>>
>> It's interesting to note that the language C stole prototypes from
>> (C++) actually does not require prototypes (or any other kind of
>> forward declarations) when it comes to class members, probably because
>> class declarations cannot span compilation units.
>
>I'm not sure exactly what this was supposed to mean, but I think it's
>wrong.
I meant this (C++):
// This will not compile:
int f( int ) { g( 120 ); }
int g( int ) { return 1; }
// This *will* compile:
class A {
int f( int ) { g( 120 ); }
int g( int ) { return 1; }
};
Ziv
Return to the
comp.compilers page.
Search the
comp.compilers archives again.