Just one more thing...
Daniel Keep
daniel.keep.lists at gmail.com
Sat Feb 28 19:52:25 PST 2009
Sean Kelly wrote:
> > One somewhat weird issue that we may have to face at some point is that
> Posix functions whose behavior was changed have had the symbol for the
> new function changed to _blah$UNIX2003, with the old function left in
> place. Since D can't declare symbols like this, we may end up having to
> add shims in C or post-process object files if it turns out that the old
> implementation of a function isn't sufficient. I'd love to hear of a
> better solution here.
extern(C) void __identifier("blah$UNIX2003")(int);
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 ...
}`);
:D
-- Daniel
More information about the Digitalmars-d-announce
mailing list