why is this cast required?

monkyyy crazymonkyyy at gmail.com
Fri Sep 25 16:07:42 UTC 2026


On Friday, 25 September 2026 at 15:52:04 UTC, DanielG wrote:
> Do you (or anyone else) know the reason for that limitation?

delegates are twice as big as raw function pointers; when doing 
airplane surgery it would be irresponsible to add an extra 
dozenial bytes of ram usage as the airplane may fall out of the 
sky.

Theres a `toDelegate` thats suppose to handle it; I think as they 
added more and more wont-work keywords the situation kept getting 
worse.


More information about the Digitalmars-d-learn mailing list