delegate passed in annotation struct cannot be invoked.

Alexandru Ermicioi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 29 13:19:18 PST 2016


On Thursday, 29 December 2016 at 21:07:00 UTC, Stefan Koch wrote:
> It's a delegate and not function.
> Therefore it will get a frame-ptr regardless, without checking 
> if it is needed or not, or if there is a frame to point to.
> Since there is no frame to point to you get the error.
> At least this is my guess.
> Make the delegate a function and the error should disappear.

Yep, making it a function, will eliminate the problem.
Though what I'm also curious is why on LDC it compiles and runs, 
while on DMD it does not?
Should it be registered as a bug on issues.dlang.org, or at ldc 
bug tracker?


More information about the Digitalmars-d-learn mailing list