Pyd: Wrapping too many functions in a class gives a compiler error
Jarrett Billingsley
kb3ctd2 at yahoo.com
Fri Jul 6 15:34:33 PDT 2007
"Kirk McDonald" <kirklin.mcdonald at gmail.com> wrote in message
news:f6meq5$2jm0$1 at digitalmars.com...
> Now /that/ is a useful piece of information. If that big ol' tuple is
> never actually used to instantiate a template, things don't blow up.
>
> With a bit of refactoring, I've convinced the following to work:
>
> // note the leading underscore
> mixin _wrap_class!(
> Foo,
> Def!(Foo.bar),
> // etc
> ) F;
>
> extern(C) void PydMain() {
> module_init();
> F.func(); // calls wrap_class
> }
>
Very interesting. We had this conversation just the other day, didn't we?
;) Glad that there's a (seemingly) simple solution.
More information about the Digitalmars-d
mailing list