How Nested Functions Work, part 1

Michiel Helvensteijn m.helvensteijn.remove at gmail.com
Wed Sep 2 04:35:05 PDT 2009


language_fan wrote:

>> I agree it would be better to allow forward references for nested
>> functions, I just wished to point out that the current behavior is not a
>> bug, it was built that way.
> 
> That's great news actually. It might even mean that this might change
> some day.

I still find it silly that it was built that way. Seems to me you should be
able to forward-reference *any* symbol that has a value that can't change
over its lifetime. Functions, const/immutable vars, typedefs, classes, etc.

-- 
Michiel Helvensteijn




More information about the Digitalmars-d mailing list