robertwb / issues-import-test

0 stars 0 forks source link

function pointers not accepted as function arguments #79

Closed robertwb closed 7 years ago

robertwb commented 7 years ago

Reported by robertwb on 29 Jul 2008 07:23 UTC The following should work.

cdef int foo(int x):
    return x*x*x-x

cdef call_foo(int x, int (*f)(int)):
    return f(x)

print call_foo(3, &foo)

Migrated-From: http://trac.cython.org/ticket/31

robertwb commented 7 years ago

Comment by robertwb on 3 Aug 2008 06:38 UTC Fixed in http://hg.cython.org/cython-devel/rev/7a1defb8455d

robertwb commented 7 years ago

Modified by robertwb on 19 Aug 2008 04:29 UTC