P
per9000
Hi, yesterday I experimented with the increment/++ operator. It seems
some behavior is not defined in C (as I was informed when posting on
Comp.Lang.C) - does the same go for C#? Is it clear what f.x: "b2[c2+
+] = a[c2];" does in C#? Is it possible that a compiler, when going
from C# to CIL, could make "different" interpretations of my code.
I compiled with cs for .NET 1.x and 2.x and also mcs with identical
result. But gcc and cl produced different result from similar c-code
(the origin of my question).
Experimental details: http://www.pererikstrandberg.se/blog/index.cgi?page=PlusPlusOperator
My post in Comp.Lang.C:
http://groups.google.se/group/comp.lang.c/browse_thread/thread/716804e05dc001a9/5851243b04c893e5
Thanks,
Per
some behavior is not defined in C (as I was informed when posting on
Comp.Lang.C) - does the same go for C#? Is it clear what f.x: "b2[c2+
+] = a[c2];" does in C#? Is it possible that a compiler, when going
from C# to CIL, could make "different" interpretations of my code.
I compiled with cs for .NET 1.x and 2.x and also mcs with identical
result. But gcc and cl produced different result from similar c-code
(the origin of my question).
Experimental details: http://www.pererikstrandberg.se/blog/index.cgi?page=PlusPlusOperator
My post in Comp.Lang.C:
http://groups.google.se/group/comp.lang.c/browse_thread/thread/716804e05dc001a9/5851243b04c893e5
Thanks,
Per