LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Assignment silently fails when out of memory.

Root / SmileBASIC Bug Reports / [.]

SquareFingersCreated:
I ran the code in http://smilebasicsource.com/forum?ftid=1330 until it gave an 'out of memory' error, and did a little more. You can get to a point where SmileBasic goes:
A%=2
OK
PRINT A%
0
OK
A#=2.2
OK
PRINT A#
0
OK
This happens on both numeric variable types, but not on the string variable type (trying to assign to a string variable, even the empty string value, gives Out of memory). The above instructions, in a program with no OPTION STRICT, give the same results.

I guess it doesn't happen with strings since they have extra checks (because they can use different amounts of memory depending on length)