Low-level memory functions

Discussion in 'Basic4ppc Wishlist' started by Mistrel, Oct 18, 2007.

  1. Mistrel

    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
     
  2. agraham

    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.
     
  3. Mistrel

    Mistrel Member

    Fudge. I really love my low level stuff. :sign0148:
     
  4. taximania

    taximania Well-Known Member Licensed User

    What would the 'low level stuff' give you the ability to do ?

    There's usually a work around.
     
Loading...