On Feb 10, 2010, at 12:50 AM, Dag Sverre Seljebotn wrote: > Stefan Behnel wrote: >> Robert Bradshaw, 10.02.2010 06:47: >> >>> cdef extern from "foo.h" namespace "Foo::Bar": >>> int f(int) >>> >>> cdef extern from "..." namespace "A::B" as X: >>> int x(int) >>> >>> print X.x(5) >>> >> >> +1 for these two, the first meaning that the names get defined in >> the flat >> module namespace. >> > I'm fine with this as well.
OK, namespaces are now declared as strings rather than dotted names. The "as" syntax is not yet implemented, it's much lower priority (and is actually orthogonal to the namespace specification, as it could apply to any extern block). As for fitting the cname pattern, having to resort to cnames for common use cases is something we're trying to move away from (e.g. one of the big motivations for C++ support). - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
