run-time stack-based allocation

David Nadlinger see at klickverbot.at
Wed May 9 15:39:53 PDT 2012


On Wednesday, 9 May 2012 at 20:52:33 UTC, Gor Gyolchanyan wrote:
> I thought function default parameters need to be statically 
> known...
> isn't it the case?

Nope – AFAIK you can also do something like (Foo param = new 
Foo).

David


More information about the Digitalmars-d mailing list