reference to 'self' inside a function

angel andrey.gelman at gmail.com
Tue Jul 17 09:56:16 PDT 2012


I propose to introduce a reference to the current function, much 
like 'this' in a class method. Call it 'self' or 'thisFunc', or 
whatever ...
What might this be good for ?
For implementing recursion in a lambda function.
Writing in functional style, one creates many functions, and 
looking for reasonable names for these functions becomes 
unnecessarily painful.


More information about the Digitalmars-d mailing list