Nested functions should be exempt from sequential visibility rules
Walter Bright
newshound2 at digitalmars.com
Thu Apr 5 11:58:11 PDT 2012
On 4/4/2012 12:57 AM, Don Clugston wrote:
> The most flexible method is to declare a local, nested struct. Any member
> functions (and variables!) of that struct have non-sequential semantics, so they
> can forward reference each other just fine.
Thanks, Don. I didn't think of this, and it's an awesome solution. Can you put
it in the D FAQ?
More information about the Digitalmars-d
mailing list