? Assignment silently fails when out of memory. (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
This website has been moved, please see this post

Assignment silently fails when out of memory.

  • #1 ✎ 477 SquareFingers 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. Posted
  • #2 ✎ 1884 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I guess it doesn't happen with strings since they have extra checks (because they can use different amounts of memory depending on length) Posted Edited by 12Me21