Runtime error trying to call opCall on variant array of objects

aliak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 25 04:37:21 PST 2016


On Saturday, 24 December 2016 at 23:06:25 UTC, Ali Çehreli wrote:
>     auto c = Command!(fun, Args)(args);
>     writefln("Created %s", c);
>     // (3) Workaround: Storing delegates, not Command instances.
>     return () => c();

Ah, yes. Nice work around :)

Thankies!


More information about the Digitalmars-d-learn mailing list