[Libreoffice-bugs] [Bug 130677] Support for &h &o Basic literals is incomplete

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Feb 15 12:53:24 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=130677

--- Comment #5 from LibreOfficiant <LibreOfficiant at sfr.fr> ---
In the absence of a suffix &h &o notations should return Integer or Long
values. Basic seems to behave this way although Basic engine internals are
stored differently. 

Whenever hexadecimal &h or octal &o literals can be rendered to Int16 numbers,
Typename() returns "Integer", Vartype() returns V_INTEGER

Whenever hexadecimal &h or octal &o literals are rendered to Int32 numbers,
Typename() returns "Double" instead of "Long", Vartype() returns V_INTEGER
instead of V_LONG

Basic-like languages do not necessarily 'explicitly' enforce 'default' Integer
or 'Long' number typing for & h &o notations. However I feel LibreOffice Basic
should support that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200215/292b7762/attachment.htm>


More information about the Libreoffice-bugs mailing list