[Gambas-user] New 64 bits incompatible change for the 2.1

Benoit Minisini gambas at ...1...
Wed Jan 23 19:36:14 CET 2008


Hi,

Why XWindow use 'long' datatype for their window handle, nobody knows. Because 
of that, window handles are 32 bits on 32 bits OS, and 64 bits on 64 bits OS. 
As if we were going to create 2^64 windows or pixmaps...

Well, I had to create a new type of array, Pointer[], and had to modify all 
method that deal with window handle: the Control class, the Embedder class, 
the Desktop.Find() method which now returns a Pointer array and not an 
Integer array anymore, and so on.

The good news: these methods now work indifferently on 32 bits OS and 64 bits 
OS. 

The bad news: this change is not compatible with 2.0, as the Pointer[] class 
does not exist at all in 2.0.

But I think that a Gambas 2 that works on 64 bits OS is worth this little 
incompatibility. Ahem, no, I don't change my mind...

-- 
Benoit Minisini




More information about the User mailing list