March 13, 2003 Possible compiler error? | ||||
---|---|---|---|---|
| ||||
Walter, in a piece of code I was writing I had foo =+ 0.2; instead of the correct foo += 0.2; The compiler didn't pick up on it, possible error? Thanks, -Jon |
March 13, 2003 Re: Possible compiler error? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan Andrew | No, it would parse as: foo = +0.2; which is equivalent to: foo = 0.2; So your program is wrong, but the compiler is not busted. Sean "Jonathan Andrew" <Jonathan_member@pathlink.com> wrote in message news:b4p654$14t$1@digitaldaemon.com... > Walter, in a piece of code I was writing I had > > foo =+ 0.2; > > instead of the correct > > foo += 0.2; > > The compiler didn't pick up on it, possible error? > > Thanks, > -Jon |
Copyright © 1999-2021 by the D Language Foundation