Question
Strange behaviour in object var member assignment in single statement
Hi,
I found this strange behaviour.
In Flash Professional For instance we have:
var dt:Date;
(dt=new Date(2014,0,1,12,00,00,0)).time+=(10*60000);
trace(dt)
We will note that dt was not changed. I expect that dt is increased of 10 minutes, but it not so.
I repeat a similar code under CSharp and it works like expected.
Works fine otherwise the code:
var dt:Date;
dt=new Date(2014,0,1,12,00,00,0);
dt.time+=(10*60000)
trace(dt) We will see the time increased of 10 minutes
Regards,
Giorgio
