Fix
parent
631da78867
commit
53832ccd2f
|
@ -542,3 +542,15 @@ TUPLE: another-forget-accessors-test ;
|
||||||
|
|
||||||
! Missing error check
|
! Missing error check
|
||||||
[ "IN: tuples.test USE: words TUPLE: wrong-superclass < word ;" eval ] must-fail
|
[ "IN: tuples.test USE: words TUPLE: wrong-superclass < word ;" eval ] must-fail
|
||||||
|
|
||||||
|
TUPLE: subclass-forget-test ;
|
||||||
|
|
||||||
|
TUPLE: subclass-forget-test-1 < subclass-forget-test ;
|
||||||
|
TUPLE: subclass-forget-test-2 < subclass-forget-test ;
|
||||||
|
TUPLE: subclass-forget-test-3 < subclass-forget-test-2 ;
|
||||||
|
|
||||||
|
[ ] [ "IN: classes.tuple.tests FORGET: subclass-forget-test" eval ] unit-test
|
||||||
|
|
||||||
|
[ f ] [ subclass-forget-test-1 tuple-class? ] unit-test
|
||||||
|
[ f ] [ subclass-forget-test-2 tuple-class? ] unit-test
|
||||||
|
[ subclass-forget-test-3 new ] must-fail
|
||||||
|
|
|
@ -81,13 +81,9 @@ HELP: print-error
|
||||||
HELP: restarts.
|
HELP: restarts.
|
||||||
{ $description "Print a list of restarts for the most recently thrown error to " { $link output-stream } "." } ;
|
{ $description "Print a list of restarts for the most recently thrown error to " { $link output-stream } "." } ;
|
||||||
|
|
||||||
HELP: error-hook
|
|
||||||
{ $var-description "A quotation with stack effect " { $snippet "( error -- )" } " which is used by " { $link try } " to report the error to the user." }
|
|
||||||
{ $examples "The default value prints the error with " { $link print-error } ", followed by a list of restarts and a help message. The graphical listener sets this variable to display a popup instead." } ;
|
|
||||||
|
|
||||||
HELP: try
|
HELP: try
|
||||||
{ $values { "quot" "a quotation" } }
|
{ $values { "quot" "a quotation" } }
|
||||||
{ $description "Attempts to call a quotation; if it throws an error, the " { $link error-hook } " gets called, stacks are restored, and execution continues after the call to " { $link try } "." }
|
{ $description "Attempts to call a quotation; if it throws an error, the error is printed to " { $link output-stream } ", stacks are restored, and execution continues after the call to " { $link try } "." }
|
||||||
{ $examples
|
{ $examples
|
||||||
"The following example prints an error and keeps going:"
|
"The following example prints an error and keeps going:"
|
||||||
{ $code
|
{ $code
|
||||||
|
|
|
@ -114,7 +114,7 @@ IN: tools.deploy.shaker
|
||||||
continuations:error-continuation
|
continuations:error-continuation
|
||||||
continuations:error-thread
|
continuations:error-thread
|
||||||
continuations:restarts
|
continuations:restarts
|
||||||
error-hook
|
listener:error-hook
|
||||||
init:init-hooks
|
init:init-hooks
|
||||||
inspector:inspector-hook
|
inspector:inspector-hook
|
||||||
io.thread:io-thread
|
io.thread:io-thread
|
||||||
|
|
Loading…
Reference in New Issue