Re: [Cython] [Pyrex] pyrex problems

Greg Ewing <greg.ewing-F+z8Qja7x9Xokq/[email protected]>
Newsgroups gmane.comp.python.cython.devel,gmane.comp.python.pyrex
Message-ID <[email protected]>
On Mon, Apr 21, 2008 at 3:27 PM, Marco Zanger <[email protected]
<mailto:[email protected]>> wrote:

>  ctypedef struct cGCoptimization "GCoptimization":
>    EnergyType expansionIter "expansion"(int max_num_iterations)
>

You need to declare the member functions as function
pointers, e.g.

   ctypedef struct cGCoptimization "GCoptimization":
     EnergyType (*expansionIter "expansion")(int max_num_iterations)

-- 
Greg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.