August 18, 2005 Re: D bug or not? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | "Manfred Nowak" <svv1999@hotmail.com> wrote:de27b3$2oqf$1@digitaldaemon.com... > > The expression in question is illegal, therefore there is no right answer. At least in C the order of evaluation for binary operators is as undefined as in D. If you got a desired result in your test, you were lucky. > > Please dont blame the bugs in the sources you want to port to D. > > -manfred Yes. According to http://digitalmars.com/d/expression.html, We should avoid these kind of codes. But a compile error or warning will be helpful. |
Copyright © 1999-2021 by the D Language Foundation