More wishes...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Joe Hurst.

Here are some other needs I would like to see in Purebasic:

More variable-types:
--------------------
Char 0 .. 255 (1 byte, as like as in Pascal, alphanumeric)
UByte 0 .. 255 (1 byte, numeric)
UWord 0 .. 65535 (2 bytes)
Null-terminated strings as in C (Is a normal string-type of Pb able to handle #0 in it?)
Structures with UNION/PACKED-keyword (important for API-calls of Windows)

More Commands:
--------------
a$=Peek$(adress,length) - read from adress length bytes
Poke$(adress,length,a$) - vice versa
a$=Char{adress} - read from adress until a null-char is reached

Any comments?
Bye, Joe
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.
Here are some other needs I would like to see in Purebasic:

More variable-types:
--------------------
Char 0 .. 255 (1 byte, as like as in Pascal, alphanumeric)
UByte 0 .. 255 (1 byte, numeric)
UWord 0 .. 65535 (2 bytes)
Not planed for now..
Null-terminated strings as in C (Is a normal string-type of Pb able to handle #0 in it?)
All string are already null terminated.
Structures with UNION/PACKED-keyword (important for API-calls of Windows)
See the manual at StructureUnion
More Commands:
--------------
a$=Peek$(adress,length) - read from adress length bytes
Poke$(adress,length,a$) - vice versa
Both will be available in v3.20
a$=Char{adress} - read from adress until a null-char is reached
Why not use PeekS() ?


Fred - AlphaSND
Post Reply