[Libreoffice-bugs] [Bug 65758] Error not triggered in an "if" statement

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 19 21:24:51 UTC 2019


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

--- Comment #14 from himajin100000 at gmail.com ---
still not sure about what to do, but it seems....

There is two different uses of the term "Error"

* "Error Statement" that causes execution stop

and

* Error Function, which returns the error messsage
https://opengrok.libreoffice.org/xref/core/basic/source/runtime/methods.cxx?r=28fc9860#191

like this
Msgbox(Error(9))

no wonder even if error function(in my definition, not the reporter's) does not
stop execution. I agree that this is very confusing, though. 

--
in OK case, Peek() used is the following one.

https://opengrok.libreoffice.org/xref/core/basic/source/comp/parser.cxx?r=587ac01f#323

in KO case(Error is used in a IF statement), this Peek() is called after
Parse() is returned.

I'm not sure if Peek() called inside Parse() as in OK case would affect this
case. 

https://opengrok.libreoffice.org/xref/core/basic/source/comp/loops.cxx?r=ab9b67bb#49

Also let me note that Next() called in Parse() after the Peek() as in OK case
resets ePush to NIL. it's still unclear to me this is important in fixing this
bug.

-- 
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/20190919/536b4866/attachment.html>


More information about the Libreoffice-bugs mailing list