Just one more thing...

Bill Baxter wbaxter at gmail.com
Mon Mar 2 21:43:03 PST 2009


On Mon, Mar 2, 2009 at 11:55 AM, Daniel Keep
<daniel.keep.lists at gmail.com> wrote:
>
>
> 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'm sure you've thought of this, so why can you not do
   mixin(`void `~name_of_fn~`(int a) { implementation_of_function(a); }`);
or
   mixin(`alias implementation_of_function `~name_of_fn~`);
?

--bb


More information about the Digitalmars-d-announce mailing list