May 20, 2004 mixin bug? multiple mixin declaration problem | ||||
---|---|---|---|---|
| ||||
I have this code template Point() { real x,y; } class FourPoints { mixin Point T1; mixin Point T2; mixin Point T3; mixin Point T4; } And inside this class i can use T1.x, T2.y! but in main i have: FourPoints FP = new FourPoints(); FP.T1.x = 3; but this last line causes: E:\D language\opengl\ifs\ifs.d(185): FP.Point!() T1 is not a declaration Obviously i can't use FP.x = 3; beacause then i get: E:\D language\opengl\ifs\ifs.d(28): variable x conflicts with Point!() T2.x at E:\D language\opengl\ifs\ifs.d(28) Hope this is a bug :) and not a feature. |
May 21, 2004 Re: mixin bug? multiple mixin declaration problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Senji | Yes, it's a bug. |
Copyright © 1999-2021 by the D Language Foundation