Walter Bright Wrote: > Nick Sabalausky wrote: > > "Walter Bright" <[email protected]> wrote in message > > news:[email protected]... > >> S. wrote: > >>> I was wondering what other people thought about this addition to C++ by > >>> Apple. Heh. > >>> > >>> http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 > >> > >> I find it strange that people are continuing to reinvent nested functions > >> in ugly ways. > > > > No offense, but Ruby and Python users would probably get a good chuckle at > > hearing the D creator saying that ;) > > Perhaps they would, but I think they would agree that a nested function > should follow the same syntax as a regular function. > >
Yes - Pascal has been doing that for years :-) > > But in the case of C/C++, I consider it a minor miracle that they were able > > to pull it off without making it 10x uglier than what they actually ended > > up > > with. > > For C++0x it's unnecessarily complicated - and they still don't have > just plain old nested functions. C has no nested functions.
