<div class="gmail_quote">On 10 May 2012 18:10, SebastianA <span dir="ltr"><<a href="mailto:sebastian.ahlman@remedygames.com" target="_blank">sebastian.ahlman@remedygames.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
test.d(23): Error: not a property t.vPosition<br>
<br>
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?<br>
</blockquote></div><br><div>Hmmm, with this in mind, and the information that it works if you remove 'ref', I wonder if this may be related to the problem that caused me to have to remove 'ref' from all the operators on tuesday (where we couldn't chain operators that received their argument by ref, complaining about lvalues). Perhaps the result of the ternary operator is causing a similar problem with temporary variable lifetime?</div>
<div><br></div><div>I am suspecting ref its self might be kinda broken. Is it a fairly new keyword? We've had a few weird problems with it.</div>