From 4341370468902858418
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a69618ea97f65037
X-Google-Attributes: gidf78e5,public
From: Loic Tregan <loic.tregan@cogisoft.fr>
Subject: Re: nested functions
Date: 1998/04/22
Message-ID: <353DE2FD.942@cogisoft.fr>#1/1
X-Deja-AN: 346622674
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
Content-Transfer-Encoding: 7bit
References: <6hac23$8lb$1@news2.isdnet.net> <6hcg4l$1bm@sjx-ixn2.ix.netcom.com>
X-Original-Date: Wed, 22 Apr 1998 14:30:53 +0200
Content-Type: text/plain; charset=us-ascii
Organization: Centre d'Etudes et de Recherches de Toulouse/DERI
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANT3kOOEDnX0m9pzZAQFRqQF/SpuvEW+aOzSgegyb/QtbghYtUOuXnsuz fYi3tx/ME46OqRWJOYE9S5LxsOH4RpmV =HX+c
Mime-Version: 1.0
Newsgroups: comp.std.c++


Manfred Knemeyer wrote:
> 
> Nested function definitions are not allowed in C either.
> 

maybe, but in gcc yes :

main()
{
	int f() { return 5; }
	
	printf( "%d", f());

}


test.c : compile
test.cc : does not compile
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



