This is interesting, though probably not a very safe way to handle vectors in the real world (even more so if they are going to be vectors of more than length 3).
Awesome that seems to do what I was going for. I had tried a
similar approach with @property dispatch and the subtraction of
'x', but I had left out the static if and had the opDispatch
returning a ref of the entry in the array (so there would just be
the one @property still) but that resulted in "Error: no property
'x' for type 'test.Vector!(2, float).Vector'".
- Template class with dispatched properties Ross Hays
- Re: Template class with dispatched properties Chris Cain
- Re: Template class with dispatched properties Chris Cain
- Re: Template class with dispatched properties Ross Hays
- Re: Template class with dispatched properties Ross Hays
- Re: Template class with dispatched proper... Chris Cain
- Re: Template class with dispatched pr... Chris Cain
- Re: Template class with dispatched pr... Ross Hays
- Re: Template class with dispatche... Ross Hays
- Re: Template class with dispatche... Chris Cain
- Re: Template class with dispatche... Ross Hays
- Re: Template class with dispatche... Chris Cain
- Re: Template class with dispatche... Ross Hays
- Re: Template class with dispatche... Ross Hays
