Em Thu, 08 May 2014 14:25:33 +0200 Benoît Minisini <gam...@users.sourceforge.net> escreveu:
> Pointer are already automatically converted to integers or longs. > What do you need to do exactly? This problem arose when I tried to use some bit manipulation functions over pointers and get caught by an error. The very simple code below show what I mean: Dim pPointer As Pointer = BSet(pPointer, 2) The evaluation of the previous line raises an error which says: "Type mismatch: wanted Number, got Pointer instead" However I can obtain the desired behavior by rewriting it as: Dim pPointer As Pointer = BSet(CLong(pPointer), 2) My request is to make the interpreter operate directly over pointers within numeric functions or to convert Pointers to Longs transparently whenever needed. Considering the error message, I think the interpreter should consider the type 'Pointer' a "Number type" also. Thank you for your dedication. Ps: I'm using Gambas 3.5.2. -- ,= ,-_-. =. Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF] ((_/)o o(\_)) There is no system but GNU; `-'(. .)`-' GNU Linux-Libre is one of its official kernels; \_/ All software must be free as in freedom;
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user