Should the comma operator be removed in D2?
Bill Baxter
wbaxter at gmail.com
Tue Nov 17 13:23:50 PST 2009
On Tue, Nov 17, 2009 at 1:02 PM, Bill Baxter <wbaxter at gmail.com> wrote:
> I bet if we search hard enough we can find other examples of bizarre C
> that get interpreted differently by D.
Here's a biggie: the value type fixed-size arrays recently introduced.
It aint hard to find examples of C code like this that will now
compile, but malfunction, in D:
void setValue(float x[4], int el, float val) { x[el] = val; }
Yet despite that, the decision was made to go for it because on the
whole it's better for the language.
--bb
More information about the Digitalmars-d
mailing list