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
More wishes...
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
Fred - AlphaSND
Not planed for now..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)
All string are already null terminated.Null-terminated strings as in C (Is a normal string-type of Pb able to handle #0 in it?)
See the manual at StructureUnionStructures with UNION/PACKED-keyword (important for API-calls of Windows)
Both will be available in v3.20More Commands:
--------------
a$=Peek$(adress,length) - read from adress length bytes
Poke$(adress,length,a$) - vice versa
Why not use PeekS() ?a$=Char{adress} - read from adress until a null-char is reached
Fred - AlphaSND