Hi

I am struggling with a function pointer problem:

cdef class LstFileReader_FAST:
    cdef tuple (*do_read_ev)(LstFileReader_FAST)

     def __init__(self,fname):

        self.fname = fname
        self.goto_start()
        self.do_read_ev = self._next_ev
.....

results in a compilation error:

Cannot assign type 'tuple (LstFileReader_FAST, int
__pyx_skip_dispatch)' to 'tuple (*)(LstFileReader_FAST)'

I found no clear explanation for this __pyx_skip_dispatch... and
somewhere above in my code I have an almostt similar statement which
works:

cdef int (*locate)(DelayLine, np.ndarray)
...
    def __init__(self):
               ....
                self.locate = self.locate_single_terminal


Any clue?
Thanks in advance for helping a beginner!
JF
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to