Ticket #31 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

Changed 6 years ago by robertwb

  • status changed from new to closed
  • resolution set to fixed

Changed 6 years ago by robertwb

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