would be nice to have the swap command be extended to support longs and array variables and not limited to its current form
would be nice to have the swap command be extended to support longs and array variables and not limited to its current form
Hi
It’s impossible to swap a pair of RAM locations in any language on any platform without the use of an identical sized temporary RAM location.
The manual only means you don’t have to look at the mess in a BASIC program, but it still exists in the compiled result.
Code:valuea = 3; valueb = 6; temp = valuea valuea = valueb valueb = temp // valuea now = 6, and valueb = 9
Bookmarks