Just one more thing...

Daniel Keep daniel.keep.lists at gmail.com
Sun Mar 1 18:55:31 PST 2009



Frits van Bommel wrote:
> 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...

/cookie fvbommel

  -- Daniel


More information about the Digitalmars-d-announce mailing list