M Mistrel Member Oct 18, 2007 #1 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
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 Longtime User Oct 19, 2007 #2 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.
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 Longtime User Oct 19, 2007 #4 What would the 'low level stuff' give you the ability to do ? There's usually a work around.