Low-level memory functions

Mistrel

Member
I would really like to see some low-level memory functions in Basic4ppc.

For example:
Alloc
Alloc String
Free

Poke/Peek Byte
Poke/Peek Float
Poke/Peek Dword
Poke/Peek Integer
Poke/Peek String
Poke/Peek Word
 

agraham

Expert
Licensed User
I am afraid that you are probably going to be disappointed.

Basic4PPC is a managed (.NET) application producing safe managed code. Low level memory access is not supported by the .NET runtime as it produces unsafe code that can have unknown side-effects.

Also the data types you mention have no meaning inside Basic4PPC which is very weakly typed - they are applicable only to global arrays dimensioned as such and intended for passing to external libraries. Internally Basic4PPC uses only doubles and strings and transparently converts from one to the other when necessary.
 

taximania

Well-Known Member
Licensed User
What would the 'low level stuff' give you the ability to do ?

There's usually a work around.
 
Top