How to define struct with function pointer member ?

Gabi galim120 at bezeqint.net
Sun Jul 28 15:10:53 PDT 2013


On Sunday, 28 July 2013 at 22:04:57 UTC, Gabi wrote:
> I tried:
>
> struct X
> {
> ..
> function double(Individual) someFun;
> ..
> }
>
> But get:
> Error: Declaration expected, not 'function'
>
>
> Thanks,
> Gabi

Sorry I found the answer.
Should have declared double function(...) someFun;


More information about the Digitalmars-d-learn mailing list