Tourist Trap wrote:@fxm,
INT doesn't replace CINT inside CPTR when doing pointer arithmetic, Is it right?
Code: Select all
cptr(any ptr, x + int(y/z))
doesn't work, whereas same with CINT, yes.
A Double (or Single) cannot be converted to a pointer.
In your example, as 'y/z' is A Double, 'Int(y/z)' is also a Double, while 'Cint(y/z)' is an Integer.
Note: simpler, 'y\z' is an Integer.
Remark: the error message 'error 28: Expected pointer' is not clear.