How to define struct with function pointer member ?

H. S. Teoh hsteoh at quickfur.ath.cx
Sun Jul 28 15:11:37 PDT 2013


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

-- 
Music critic: "That's an imitation fugue!"


More information about the Digitalmars-d-learn mailing list