Re: Pass by Reference as "essential " to swap method exposed as a lie
On Oct 15, 1:22 pm, Jon Skeet [C# MVP] <sk...@pobox.co mwrote:
Yeah, neat trick, I just tried it. It only works for binary systems
of base 2.
Lern something new everyday, Vern.
RL
On Oct 15, 1:22 pm, Jon Skeet [C# MVP] <sk...@pobox.co mwrote:
>
You didn't try it, did you? The whole point of the example is to show
that no temporary variable is needed (for integers), and certainly
there are no pointers involved. Hint: ^ is the XOR operator in C#.
>
You didn't try it, did you? The whole point of the example is to show
that no temporary variable is needed (for integers), and certainly
there are no pointers involved. Hint: ^ is the XOR operator in C#.
>
of base 2.
Lern something new everyday, Vern.
RL
Comment