[C++-sig] Re: playing with pygame

Brett Calcott brett.calcott at paradise.net.nz
Sat Jun 7 06:03:29 CEST 2003


>
> Wow, for some reason I couldn't see a generic solution and didn't
> think of doing it that way.  That's totally cool!  Maybe I should
> change the implementation in the library to allow non-const
> PyTypeObjects.  It's more flexible, after all.
>

Yup - that makes sense. The only caveat is the requirement (at least with
VC6) to put a variable name in now:

> >  lvalue_from_nonconst_pytype<extract_identity<PyRectObject> >
> >      need_this_or_msvc_barfs(&PyRect_Type);


Cheers,
Brett







More information about the Cplusplus-sig mailing list