Re: bug in 8.4.14 return -code error?



Bryan Oakley wrote:
Hmmm. I guess I see the point, though it still seems non-intuitive. If catch catches "return -code error -errorcode foo", I would expect to be able to retrieve the errorcode I specified.

% package require Tcl 8.5
8.5a5
% catch {
return -code error -errorcode foo
} m o
2
% set o
-code 1 -level 1 -errorcode foo

--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.



Relevant Pages

  • Set and .equals() semantics
    ... my app maintains a Collection of unique Foo() objects derived by reading and parsing an InputStream. ... If this is the first time I've seen it, everything is fine because I already have the reference and can add it to both places, e.g. ... I know there's an identical copy already in the Set but there's no way to retrieve it in order to add it to the Bar object. ...
    (comp.lang.java.programmer)
  • Re: bug in 8.4.14 return -code error?
    ... Don Porter wrote: ... If catch catches "return -code error -errorcode foo", I would expect to be able to retrieve the errorcode I specified. ...
    (comp.lang.tcl)
  • Attr Methods and object setters
    ... attr_accessor:bla ... to retrieve the value. ... object.bla 'foo' ... So basically I guess my question is there an attr to the second, ...
    (comp.lang.ruby)