Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#31 closed defect (fixed)

function pointers not accepted as function arguments

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

Description

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 6 years ago by robertwb

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

comment:2 Changed 6 years ago by robertwb

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