In the current ZGE, it is possible to use xptr type and I'm using it extensively for pointers to C++ structures passed to/returned from external libraries. (Before xptr I was using int type for pointers; which worked for 32bit machines, but not for 64bit.)
Unfortunately, ZGE does not provide full comfort for xptr because it is not possible to declare/use global variable of type xptr. Therefore I request to:
1. Add xptr to the Variable.Type list.
2. If ZLibrary defines a global variable of type xptr, e.g.
, ZExternalLibrary or ZLibrary defines a function returning xptr, e.g.
, it should be possible to write the following expression
Unfortunately, at the moment, ZGE reports syntax error
Invalid conversion: ((float)foo()). An interesting point is that if the xptr variable is defined in expression locally, no syntax error is reported and the code works correctly.