I'm playing around in the DMD source code. I'm wondering how I could set a 
specific linkage for all function pointers. I'm currently looking in the 
Parser::parseBasicType2 function at:

https://github.com/D-Programming-Language/dmd/blob/master/src/parse.c#L2667

I can set the linkage when TypeFunction is created. But the problem is when the 
semantic phase is run the linkage will be overridden with the value from the 
scope here:

https://github.com/D-Programming-Language/dmd/blob/master/src/mtype.c#L5467

-- 
/Jacob Carlborg

_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to