D - Function types
- Daniel Yokomiso (10/10) Dec 10 2002 Hi,
- Walter (3/7) Dec 15 2002 That syntax should work.
Hi,
How can we declare a function pointer type? This syntax is needed to
declare a array using the new operator as in:
int (*operations[])(int, int) = new ????;
Also I need this for templates so I can instantiate a template using a
function type.
Best regards,
Daniel Yokomiso.
"Sincerity is the key. If you can fake that, you've got it made."
- George Burns
Dec 10 2002
"Daniel Yokomiso" <daniel_yokomiso yahoo.com.br> wrote in message
news:at5ifg$jad$1 digitaldaemon.com...
Hi,
How can we declare a function pointer type? This syntax is needed to
declare a array using the new operator as in:
int (*operations[])(int, int) = new ????;
That syntax should work.
Dec 15 2002








"Walter" <walter digitalmars.com>