[Gambas-user] Error in rev. #5473

Benoît Minisini gambas at ...1...
Sun Dec 30 03:23:22 CET 2012


Le 30/12/2012 03:18, Emil Lenngren a écrit :
> What's the point to be able to convert pointers to strings (take the
> numerical value of the pointer)?
> If I would like a string representation of a pointer I would at least want
> it in hexadecimal form.
> But I also think most people that convert pointers to strings want to get
> the string out of a char* that points to a NULL-terminated string.
>
> /Emil
>

It's just some sort of shortcut: CStr(pointer) = CStr(CInt(pointer)) or 
CStr(CLong(pointer)) according to the size of the pointer.

I found that logical, so that a Pointer can be directly used as a 
collection key.

But I agree that using hexadecimal would be better.

Regards,

-- 
Benoît Minisini




More information about the User mailing list