"Error: need 'this' for 'bbox' of type 'Bong!(double, 3u)'"

Enjoys Math via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 5 20:45:38 PST 2016


On Saturday, 6 February 2016 at 04:41:26 UTC, Enjoys Math wrote:
> I'm getting that on the last line of this code:
>
> 		auto wh = Vec2([loadSurf.w, loadSurf.h]);
> 		wh /= 2;
> 		auto x = wh.plus1Dim(pos[Z]);
> 		this.bbox = Box3(pos - x, pos + x);
>
> Any ideas?

Found it, this was occuring in a static function.


More information about the Digitalmars-d-learn mailing list