Strange casting error when using lamdas

Robert M. Münch robert.muench at
Thu Dec 5 08:57:43 UTC 2019

On 2019-12-04 19:23:07 +0000, Steven Schveighoffer said:

> Is one a delegate and one a function pointer? This can easily happen 
> for untyped lambdas.

That's a very good point and hint. A function pointer will be 8LU and a 
delegate 16LU, right? This is a strong argument that this is really the 

How can I find out? That's why I used a pragma to get the type of the 
alias. So, the alias needs to become a delegate. No clue how to write 
this down.

Robert M. Münch
smarter | better | faster

More information about the Digitalmars-d-learn mailing list