The as XXX alias on cdef extern from ... blocks would be seriously great. Would
On Fri, Jan 18, 2013 at 10:54:24AM -0800, Robert Bradshaw wrote:
> On Fri, Jan 18, 2013 at 8:21 AM, John Tyree <
john...@gmail.com> wrote:
> > Ok. Building a test case illustrated my problem. The error was actually for
> > cpp_bad(), which *was* being declared twice with two different linkages.
>
> Note that you'll probably want to build the library and link against
> it to use it in multiple modules.
>
> > Otherwise this appears to work fine.
> >
> > There's no way to have namespaces come over with the function names is there?
> >
> > cdef extern from "b.cpp" namespace "foo":
> > void whatever()
> >
> > and then use foo.whatever() instead of just whatever()? I guess using a new pxd
> > for each namespace and then cimport namespace is the best solution to that problem.
>
> Yep. We could consider adding a "as XXX" clause to extern inport
> blocks as well.
>
> > On Fri, Jan 18, 2013 at 03:08:41PM +0100, Stefan Behnel wrote:
> >> [fixed up reply order]
> >>
> >> John Tyree, 18.01.2013 15:01: