function pointers

Jimmy verma jim_938 at hotmail.com
Mon Jun 2 17:47:20 CEST 2003


Hello !

I have a few statements in C for which i want to write the equivalent code 
in python:

typedef int (*AB)(int a, int b);          #a function pointer type used to 
describe signature of some function.

Then a structure of the form

typedef struct abc
{
       AB make;
       int a;
}ABC;

Now this structure is getting passed to some function

xyz(const ABC* inter)
{
         #some code here
          e = inter->Make(a, b);
}

How can i handle it with python.

Waiting for reply

Thanks in advance.

Regards.

_________________________________________________________________
Race along with NK. The fastest Indian 
http://server1.msn.co.in/sp03/tataracing/index.asp Feel the thrill!






More information about the Python-list mailing list