reference to 'self' inside a function

Kevin Cox kevincox.ca at gmail.com
Wed Jul 18 03:43:27 PDT 2012


On Jul 18, 2012 6:20 AM, "FeepingCreature" <default_357-line at yahoo.de>
wrote:
>
> On 07/18/12 01:05, Kevin Cox wrote:
> >

> > What about how JavaScript does it.  Anonymous functions can still have
a "name" that can be used from inside of a function to refer to itself.
> Sadly, this collides with the return-type syntax already in place.
>
> auto f = function int(int i) { return 0; };

True, but the concept could still be used, we just need some syntax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120718/6dc0cee1/attachment.html>


More information about the Digitalmars-d mailing list