Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#31 closed defect (fixed)

function pointers not accepted as function arguments

Reported by: robertwb Owned by: somebody
Priority: major Milestone:
Component: Parsing Keywords:


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)

Change History (2)

comment:1 Changed 8 years ago by robertwb

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 8 years ago by robertwb

  • Milestone set to
Note: See TracTickets for help on using tickets.