Re: bug in 8.4.14 return -code error?



Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx> wrote:
Don Porter wrote:
Bryan Oakley wrote:
I'm seeing what looks like buggy behavior with "return -code error" in
8.4.14.
Is it at odds with any documentation?
Yes. return -code error doesn't behave according to the documentation IMO.

I don't think it's a bug.

[return -code error] is designed to make the *current procedure*
behave like the command "error", not to be equivalent to [error]
itself.

catch {return -code error} is 2(return) , not 1(error)

Prior to 8.5, there is no way to recognize the "-code error"
from the information provided by catch, if the return happens
immediately inside the catch-body.

.



Relevant Pages

  • Weekly Python Patch/Bug Summary
    ... Patch / Bug Summary ... Help with Python codebase ... Update to Macintosh library documentation ... Segfaults on memory error ...
    (comp.lang.python)
  • Weekly Python Patch/Bug Summary
    ... Patch / Bug Summary ... typo in liblocale.tex ... subprocess documentation ... Registry not updated by 2.4b1 installer ...
    (comp.lang.python)
  • Re: Tired of 100s of stupid Getter/Setter methods
    ... > reading the documentation that the library developer wrote. ... ability to become familiar with an API. ... Given the choice between finding out about a bug as I'm writing the ... say about a language that's one of the more readable that I work in. ...
    (comp.lang.java.programmer)
  • Re: strtomember and strtoset bug with hyphen
    ... I fully agree with you that the documentation should've been much clearer in ... As I explained, this cannot be considered as bug, because "-" and other ... reserved keyword as the member name without quoting it. ... >> You should either quote the special characters, ...
    (microsoft.public.sqlserver.olap)
  • Re: Why has the Metrowerks sign been taken down?
    ... Apple could have invested, let's err on the side against Larry's, ... > leveraging effect wrt Apple documentation, dev tools and OS bug fixes. ... dev bugs and engineering probably have ...
    (comp.sys.mac.programmer.codewarrior)