Another interesting hack: expand a static array into parameter arguments
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Apr 3 02:05:09 PDT 2014
On 4/2/14, Simen Kjærås <simen.kjaras at gmail.com> wrote:
> In fact, it does not even need to have arg and idx explicitly passed,
> and the alias for Array is redundant.
Actually, I've just realized the inner Delay() becomes a nested
function with a hidden context pointer. If you mark the function as
'static' the code will fail to compile. I'm not sure whether this has
any performance implications.
More information about the Digitalmars-d
mailing list