Re: [Cython] Cython produces invalid code for operator()

2015-06-11 Thread Ian Henriksen
On Thu, Jun 11, 2015 at 10:09 AM Michael Enßlin wrote: > Hi guys, > > have a look at this: > > $ cat bar.pyx > cdef extern from "foo.h": > cdef cppclass Foo: > int operator() (int arg) > int do_call (int arg) > > > cdef int bar(int arg): > cdef Foo foo > foo.do_call(ar

[Cython] Cython produces invalid code for operator()

2015-06-11 Thread Michael Enßlin
Hi guys, have a look at this: $ cat bar.pyx cdef extern from "foo.h": cdef cppclass Foo: int operator() (int arg) int do_call (int arg) cdef int bar(int arg): cdef Foo foo foo.do_call(arg) return foo(arg) $ cython3 --cplus bar.pyx $ cat bar.cpp (...) static in