How to define struct with function pointer member ?

Gabi galim120 at bezeqint.net
Sun Jul 28 15:17:00 PDT 2013


On Sunday, 28 July 2013 at 22:13:13 UTC, H. S. Teoh wrote:
> On Mon, Jul 29, 2013 at 12:04:55AM +0200, Gabi wrote:
>> I tried:
>> 
>> struct X
>> {
>> ..
>> function double(Individual) someFun;
> [...]
>
> The correct syntax is:
>
> 	double function(Individual) someFun;
>
>
> T

Yes thanks. Beginner's mistake :)


More information about the Digitalmars-d-learn mailing list