https://bugs.documentfoundation.org/show_bug.cgi?id=168750
Bug ID: 168750
Summary: Names defined in a class module are visible without an
instantiated class, during loading
Product: LibreOffice
Version: unspecified
Hardware: All
URL: https://ask.libreoffice.org/t/using-scriptforge-breaks
-failure-free-loading-of-a-document-after-a-restart-of
-libreoffice/127551/
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Created attachment 203210
--> https://bugs.documentfoundation.org/attachment.cgi?id=203210&action=edit
An UDF using a name clashing with a class module's function
Ref:
https://ask.libreoffice.org/t/using-scriptforge-breaks-failure-free-loading-of-a-document-after-a-restart-of-libreoffice/127551/
Open the attachment.
It contains a library with a class module with some function, and a library
with a normal module with a user-defined spreadsheet function (UDF), that uses
the same name as in the class module. Since the names in class modules are
normally not visible outside the module, unless they are used on an instance of
the class, it is expected that the names do not clash. However, they do during
the load.
Expected:
- No errors during load; the formula in B1 is FALSE
Actual:
- "Argument is not optional" error during load; the formula in B1 is TRUE
--
You are receiving this mail because:
You are the assignee for the bug.