On May 13, 2010, at 11:20 AM, David Barnett wrote:

> Hi,
>
> I noticed two failures to compile that I think are bugs:
>  - "ctypedef Foo[int] Bar" gives a syntax error (i.e., there doesn't  
> seem to be any way to typedef a templated type).

Yes, that is a bug (there are several C++ features that are not  
implemented in as much generality as they could be yet).

>  - Defining a struct in a namespace and trying to convert it to a  
> Python dict doesn't work. Instead you get nasty  
> "__pyx_convert__to_py_THENAMESPACE" errors from the C++ compiler (it  
> doesn't mangle the cname properly and tries to define  
> __pyx_convert__to_py_THENAMESPACE::THESTRUCT).
>
> I made a patch to *add tests* for the two bugs (not fix them).

Thanks! Pushed.

> (BTW, is creating Trac tickets closed to the general public?)

Yeah, it used to be open, but keeping up with the spam got to be too  
big of a task. We could look into some kind of a capatcha system, as  
we're not that big of a target.

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to