[Gambas-user] [Fwd: Gambas3 Pointers example]

Benoît Minisini gambas at ...1...
Mon Jan 10 23:57:14 CET 2011


> This is what is said here
> http://gambasdoc.org/help/howto/extern?v3
> "More On Pointers"
> READ #mypointer, var1_4byte
> mypointer += 4
> READ #mypointer, var2_4byte
> 
> 
> i tried
> Print "\nRead the pointer"
> Print "Integer read:"; Integer@(pPointer)
> pPointer += 4
> Print "Float read:"; Float@(pPointer)
> 
> But this raises an error, "Type mismatch, wanted number get pointer
> instead" Is this a bug?
> 

I have implemented pointer arithmetic in revision #3452, so you should not 
have that error anymore.

Regards,

-- 
Benoît Minisini




More information about the User mailing list