Datatype documentation

Previous topic - Next topic

FutureCow

Can we have an extra category in the documentation for datatypes please?
ie. I'd like to easily be able to find out what range a integer, a float etc are (particularly if it changes between platforms)
It would also be good if this section of the doco showed how you define them.

My suggestion

DataTypes
- Integer
      - Range
               Windows | 0-65535 (or whatever)
               MAC | -32766 to 32767 (or whatever)
      - Declaring
               let a=1

- String
    - Range
          Windows | Maximum length 255 characters (or whatever)
          MAC | Maximum length 100 characters (or whatever)
    - Declaring
             let a$="Hello World"
     
- Float
- Boolean
- Etc

It would be good if this documenation section could also include things like declaring arrays, structs etc so you don't have to look through the whole tutorial section. (In fact, just breaking the tutorial up into each section so you can see the topics in the helpfile would be a great start!)

Kitty Hello

There's just 3 data types in GLBasic (with Version 6, out now). Floating point numbers (double on x86, float on ARM), and integers (32 bit).
Strings are always 8bit per character. Utf-8 is not supported, yet.

FutureCow

So to clarify
Integer : â€"2147483647 to +2147483647

Floating point : x86 - 64bit (arbitrary precision)
ARM : 32bit (arbitrary precision)

Is Boolean considered its own data type?

Can we have the data types in the next version of the documentation?

S. P. Gardebiter

I think more data types would a great idea.
GLBasic does the most things alone but it would be a nice thing for someone who wants to reduce the use of RAM :P
Plus I just love to declare different data types ;_;
~ Cave Story rules! ~