simple ABI change to enable implicit conversion of functions to delegates?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Tue May 16 02:35:16 PDT 2017


On Monday, 15 May 2017 at 10:41:55 UTC, ag0aep6g wrote:
> Now, what if we changed the ABI of delegates so that the 
> context pointer is passed after the explicit arguments? That 
> is, `dg(1, 2)` would pass (2, 1, 13). Then `f` would see 2 in b 
> and 1 in a. It would ignore 13. Seems everything would just 
> work then.

You can't pass 3 arguments to a function that takes 2 arguments. 
It's a violation of ABI and it won't work.


More information about the Digitalmars-d mailing list