Just one more thing...

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Sun Mar 1 15:35:53 PST 2009


Sean Kelly wrote:
> Daniel Keep wrote:
>> extern(C) void __identifier("blah$UNIX2003")(int);
> 
> That would be awesome.
> 
>> A beneficial side-effect is that I can finally get rid of all those
>> mixins that are just doing this:
>>
>> mixin(`void `~name_of_fn~`(int a)
>> {
>>     // ... rest of function ...
>> }`);
> 
> I had absolutely no idea that this could be used to generate symbol 
> names that are illegal in D.

I don't think he's generating illegal symbol names. He's just sick of 
having to specify the whole function in a string when all he wants to 
change from instantiation to instantiation is the name...


More information about the Digitalmars-d-announce mailing list