[Gambas-user] [Fwd: Gambas3 Pointers example]
Jussi Lahtinen
jussi.lahtinen at ...626...
Sun Jan 9 22:20:18 CET 2011
pPointer += 4
> Print "Float read:"; Float@(pPointer)
>
> But this raises an error, "Type mismatch, wanted number get pointer
> instead"
> Is this a bug?
>
Probably, I'll look that more closely later...
> As i see there is no intrinsic function of Gambas3 for moving in memory
> forward or backward from a starting memory address.
> Is it useful to be one? what do you say?
>
> As i see there is only a way to move inside a memory stream with SEEK.
>
Quickly thinking I don't see any need for anything else than "SEEK",
"pPointer + something"
and of course automatically with read/write.
Jussi
More information about the User
mailing list