unhuman Posted May 20, 2010 Share Posted May 20, 2010 Call me crazy - but for speed purposes by convention, I think I'd rather see A be 16-bit integers and A% to be the 32 bit ones. -H Well, in the picture above I made a small hint about variables. I remember one computer having the % after the variable name. I googled and it made me read some of the C64 Programmers Guide. I used to have that one. Wonderful manual by the way. So, you would have ordinary variables being floating point. Then there would be the string variables having a $ as suffix in the variable name. And then there were faster variables with the % suffix which were integers. I guess they must have been 16 bit (8 bit variables would be rather limited range). Anyways, I think I'll adopt the syntax somewhat. 32 bit integers will be the "ordinary" variables. The 16 bit integers will be the faster variables - and have the % suffix. - I was shocked to relearn that C64 variables only were known (to the computer) by they first two characters. The variables LE and LEARN would be the same. So what do we have ? LET A = 0 The variable will be a 32 bit integer having a range of −2,147,483,648 to +2,147,483,647. LET A% = 0 The variable will a 16 bit integer having a range of −32,768 to +32,767 (or maybe unsigned 0 to 65,535). LET A$ = "" The variable will be a string with a capacity of 0 to 256 characters. The above examples will create 3 different variables - aka they will not be confused with each other. Same as C64. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.