On 10 May 2012 18:10, SebastianA wrote:
> test.d(23): Error: not a property t.vPosition
>
> when trying that. If I remove the ternary operator and just assign Vec(2,
> 2) to the property, it works as expected. Am I missing something here? Why
> cannot I write the code as listed above?
>
Hmmm, wi
I had not tested the code with DMD. We need x64 support, so we
need GDC for that at the moment. However, I tried compiling with
DMD and it seems that the line
t.vPosition = (Clock.currStdTime % 2 == 0) ? Vec(2, 2) : Vec(3,
3);
does not compile with the latest DMD compiler. I get the error:
On 10 May 2012 15:18, SebastianA wrote:
> We are seeing a problem with passing ref parameters to properties. This bug
> only occurs in certain situations. Consider the following code:
>
>
> void runTest()
> {
> Thing t;
> t.vPosition = (Clock.currStdTime % 2 == 0) ? Vec(2, 2) :
We are seeing a problem with passing ref parameters to
properties. This bug only occurs in certain situations. Consider
the following code:
void runTest()
{
Thing t;
t.vPosition = (Clock.currStdTime % 2 == 0) ? Vec(2, 2) : Vec(3,
3);
Vec v = t.vPosition;
outputD