Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Geoxion9037yTook me a minute to realize what you were doing :P
But this only works when the parameters are loaded left to right.
Is it documented in .NET that it is that way? Otherwise this code could break in one of the many other .NET platforms. -
FYI if ported to C or CPP this would be undefined behavior due to parameter statement execution order being undefined
-
Froot75567y@ctwx It only creates one array. The right side is an array creation and the left side is an array destruction back to variables.
Not sure how array/object destruction is implemented in the engine tho -
sSam15017y@isaacWeisberg I've tried only like one program in C# so I might be wrong, but main method has to capitalized, the convention for method names is PascalCase so it would be GetItself instead of getItself and finally look at the tag of the post
Related Rants
best swapping program ever....
undefined
java
swap