[Libreoffice-bugs] [Bug 85371] Redim with function name

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 29 21:12:17 UTC 2019


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

--- Comment #9 from himajin100000 at gmail.com ---
Just a guess:

As I pointed out in tdf#57308, SbMethod is silently added to refParams at index
0.

This method basically has the flag SbxFlagBits::Read only, so we cannot write
to this variable.

https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=889dc7bf#502

However, if the variable is used in a function(pMeth) with the same name as the
variable, the variable will be given a SbxFlagBits::Write.

https://opengrok.libreoffice.org/xref/core/basic/source/runtime/runtime.cxx?r=889dc7bf#1651

and the flag will be restored later in StepPUT.

On the other hand if the variable is used in StepINITFOR,StepNext

https://opengrok.libreoffice.org/xref/core/basic/source/comp/loops.cxx?r=ab9b67bb#238
https://opengrok.libreoffice.org/xref/core/basic/source/inc/opcodes.hxx?r=abe5a1a5#28
https://opengrok.libreoffice.org/xref/core/basic/source/runtime/runtime.cxx?r=889dc7bf#763
https://opengrok.libreoffice.org/xref/core/basic/source/runtime/runtime.cxx?r=889dc7bf#StepINITFOR
https://opengrok.libreoffice.org/xref/core/basic/source/runtime/runtime.cxx?r=889dc7bf#2546

SbxFlagBits::Write is not set to this variable. I guess this is the cause.

-- 
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/20190829/6ffdfc13/attachment.html>


More information about the Libreoffice-bugs mailing list