Newbie initial comments on D language - delegate

Janice Caron caron800 at googlemail.com
Wed Jan 30 00:38:01 PST 2008


On Jan 30, 2008 8:36 AM, Janice Caron <caron800 at googlemail.com> wrote:
> On Jan 30, 2008 8:16 AM, Don Clugston <dac at nospam.com.au> wrote:
> > How do you declare
> > oldFashionedCFunction() ?
>
> The old fashioned way?
>
>     extern(C) void (*callback)(int,int);

Or, for any delegate dg,

    typeof(dg.funcptr) callback;



More information about the Digitalmars-d mailing list