]> gitweb.factorcode.org Git - factor.git/commitdiff
change ERROR: words from throw-foo back to foo.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 13 Aug 2015 23:13:05 +0000 (16:13 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 13 Aug 2015 23:13:05 +0000 (16:13 -0700)
330 files changed:
basis/alien/c-types/c-types.factor
basis/alien/data/data.factor
basis/alien/endian/endian.factor
basis/alien/libraries/libraries.factor
basis/alien/parser/parser.factor
basis/base64/base64.factor
basis/biassocs/biassocs.factor
basis/bit-arrays/bit-arrays.factor
basis/bit-sets/bit-sets.factor
basis/bitstreams/bitstreams.factor
basis/bootstrap/help/help.factor
basis/bootstrap/image/image.factor
basis/boxes/boxes.factor
basis/byte-arrays/hex/hex.factor
basis/cairo/cairo.factor
basis/calendar/calendar.factor
basis/calendar/format/format.factor
basis/checksums/openssl/openssl.factor
basis/classes/struct/struct.factor
basis/cocoa/messages/messages.factor
basis/cocoa/plists/plists.factor
basis/colors/constants/constants.factor
basis/combinators/random/random.factor
basis/combinators/short-circuit/smart/smart.factor
basis/compiler/cfg/alias-analysis/alias-analysis.factor
basis/compiler/cfg/checker/checker.factor
basis/compiler/cfg/intrinsics/intrinsics.factor
basis/compiler/cfg/intrinsics/simd/backend/backend.factor
basis/compiler/cfg/linear-scan/allocation/spilling/spilling.factor
basis/compiler/cfg/linear-scan/allocation/splitting/splitting.factor
basis/compiler/cfg/linear-scan/allocation/state/state.factor
basis/compiler/cfg/linear-scan/assignment/assignment.factor
basis/compiler/cfg/linear-scan/live-intervals/live-intervals.factor
basis/compiler/cfg/linear-scan/numbering/numbering.factor
basis/compiler/cfg/registers/registers.factor
basis/compiler/cfg/representations/conversion/conversion.factor
basis/compiler/cfg/ssa/destruction/coalescing/coalescing.factor
basis/compiler/cfg/ssa/interference/live-ranges/live-ranges.factor
basis/compiler/cfg/stacks/finalize/finalize.factor
basis/compiler/cfg/stacks/padding/padding.factor
basis/compiler/tests/intrinsics.factor
basis/compiler/tree/checker/checker.factor
basis/compiler/tree/def-use/def-use.factor
basis/compiler/tree/propagation/call-effect/call-effect-tests.factor
basis/compiler/tree/propagation/call-effect/call-effect.factor
basis/compiler/tree/propagation/simple/simple.factor
basis/compiler/tree/propagation/transforms/transforms.factor
basis/compression/inflate/inflate.factor
basis/compression/lzw/lzw.factor
basis/compression/snappy/snappy.factor
basis/compression/zlib/zlib.factor
basis/concurrency/conditions/conditions.factor
basis/concurrency/count-downs/count-downs.factor
basis/concurrency/messaging/messaging.factor
basis/concurrency/promises/promises.factor
basis/concurrency/semaphores/semaphores.factor
basis/core-foundation/launch-services/launch-services.factor
basis/core-foundation/numbers/numbers.factor
basis/core-text/core-text.factor
basis/cpu/x86/assembler/assembler.factor
basis/cpu/x86/assembler/operands/operands.factor
basis/db/postgresql/lib/lib.factor
basis/db/postgresql/postgresql.factor
basis/db/queries/queries.factor
basis/db/sqlite/lib/lib.factor
basis/db/sqlite/sqlite.factor
basis/db/tuples/tuples.factor
basis/db/types/types.factor
basis/delegate/delegate.factor
basis/deques/deques.factor
basis/editors/editors.factor
basis/formatting/formatting.factor
basis/fry/fry.factor
basis/ftp/client/client.factor
basis/ftp/server/server.factor
basis/furnace/asides/asides.factor
basis/furnace/utilities/utilities.factor
basis/game/input/input.factor
basis/generalizations/generalizations.factor
basis/gobject-introspection/gobject-introspection.factor
basis/gobject-introspection/types/types.factor
basis/grouping/grouping.factor
basis/heaps/heaps.factor
basis/help/lint/checks/checks.factor
basis/help/markup/markup.factor
basis/help/syntax/syntax.factor
basis/help/topics/topics.factor
basis/hints/hints.factor
basis/html/templates/chloe/compiler/compiler.factor
basis/html/templates/templates.factor
basis/http/client/client.factor
basis/http/server/requests/requests.factor
basis/images/loader/gdiplus/gdiplus.factor
basis/images/loader/loader.factor
basis/interval-maps/interval-maps.factor
basis/interval-sets/interval-sets.factor
basis/inverse/inverse.factor
basis/io/backend/unix/unix.factor
basis/io/directories/search/search.factor
basis/io/encodings/8-bit/8-bit.factor
basis/io/encodings/euc/euc.factor
basis/io/encodings/gb18030/gb18030.factor
basis/io/encodings/iso2022/iso2022.factor
basis/io/encodings/shift-jis/shift-jis.factor
basis/io/encodings/strict/strict.factor
basis/io/files/info/windows/windows.factor
basis/io/files/links/links.factor
basis/io/files/windows/windows.factor
basis/io/launcher/launcher.factor
basis/io/launcher/windows/windows.factor
basis/io/mmap/mmap.factor
basis/io/ports/ports.factor
basis/io/servers/servers.factor
basis/io/sockets/secure/openssl/openssl.factor
basis/io/sockets/sockets.factor
basis/io/streams/duplex/duplex.factor
basis/io/streams/limited/limited.factor
basis/io/streams/throwing/throwing.factor
basis/json/reader/reader.factor
basis/libc/libc.factor
basis/locals/locals.factor
basis/locals/parser/parser.factor
basis/locals/rewrite/point-free/point-free.factor
basis/locals/rewrite/sugar/sugar.factor
basis/logging/logging.factor
basis/macros/macros.factor
basis/match/match.factor
basis/math/bitwise/bitwise.factor
basis/math/complex/complex.factor
basis/math/functions/functions.factor
basis/math/matrices/matrices.factor
basis/math/partial-dispatch/partial-dispatch.factor
basis/math/polynomials/polynomials.factor
basis/math/primes/lucas-lehmer/lucas-lehmer.factor
basis/math/primes/primes.factor
basis/math/vectors/conversion/conversion-tests.factor
basis/math/vectors/conversion/conversion.factor
basis/math/vectors/simd/simd.factor
basis/mime/multipart/multipart.factor
basis/mirrors/mirrors.factor
basis/multiline/multiline.factor
basis/nibble-arrays/nibble-arrays.factor
basis/opengl/annotations/annotations-docs.factor
basis/opengl/gl/extensions/extensions.factor
basis/opengl/textures/textures.factor
basis/pack/pack.factor
basis/peg/ebnf/ebnf.factor
basis/peg/peg.factor
basis/persistent/vectors/vectors.factor
basis/random/random.factor
basis/random/windows/windows.factor
basis/regexp/parser/parser.factor
basis/roman/roman.factor
basis/sequences/unrolled/unrolled.factor
basis/smtp/smtp.factor
basis/specialized-arrays/specialized-arrays.factor
basis/stack-checker/stack-checker-tests.factor
basis/tools/annotations/annotations.factor
basis/tools/annotations/assertions/assertions.factor
basis/tools/deploy/backend/backend.factor
basis/tools/deploy/deploy.factor
basis/tools/deploy/shaker/strip-specialized-arrays.factor
basis/tools/deploy/test/test.factor
basis/tools/deploy/windows/ico/ico.factor
basis/tools/files/files.factor
basis/tools/scaffold/scaffold.factor
basis/tr/tr.factor
basis/tuple-arrays/tuple-arrays.factor
basis/typed/namespaces/namespaces.factor
basis/typed/typed.factor
basis/ui/gadgets/labels/labels.factor
basis/ui/gadgets/worlds/worlds.factor
basis/ui/pixel-formats/pixel-formats.factor
basis/unix/groups/groups.factor
basis/unix/linux/proc/proc.factor
basis/unix/unix.factor
basis/unix/users/users.factor
basis/unrolled-lists/unrolled-lists.factor
basis/urls/urls.factor
basis/vlists/vlists.factor
basis/vocabs/hierarchy/hierarchy.factor
basis/vocabs/metadata/metadata.factor
basis/windows/com/com.factor
basis/windows/com/syntax/syntax.factor
basis/windows/gdiplus/gdiplus.factor
basis/windows/iphlpapi/iphlpapi.factor
basis/windows/registry/registry.factor
basis/windows/winmm/winmm.factor
basis/windows/winsock/winsock.factor
basis/xml-rpc/xml-rpc.factor
basis/xml/syntax/syntax.factor
core/alien/alien.factor
core/alien/strings/strings.factor
core/classes/algebra/algebra.factor
core/classes/builtin/builtin.factor
core/classes/classes.factor
core/classes/error/error-tests.factor
core/classes/error/error.factor
core/classes/mixin/mixin.factor
core/classes/tuple/parser/parser.factor
core/classes/tuple/tuple.factor
core/classes/union/union.factor
core/combinators/combinators.factor
core/continuations/continuations.factor
core/definitions/definitions.factor
core/destructors/destructors.factor
core/effects/effects.factor
core/effects/parser/parser.factor
core/generic/generic.factor
core/generic/math/math.factor
core/generic/parser/parser.factor
core/generic/single/single.factor
core/hashtables/hashtables.factor
core/io/encodings/ascii/ascii.factor
core/io/encodings/utf16/utf16.factor
core/io/pathnames/pathnames.factor
core/kernel/kernel.factor
core/lexer/lexer.factor
core/math/math.factor
core/math/parser/parser.factor
core/math/ratios/ratios.factor
core/parser/parser.factor
core/sequences/sequences.factor
core/slots/slots.factor
core/source-files/source-files.factor
core/strings/parser/parser.factor
core/syntax/syntax-docs.factor
core/syntax/syntax.factor
core/vocabs/loader/loader-docs.factor
core/vocabs/loader/loader.factor
core/vocabs/parser/parser.factor
core/vocabs/vocabs.factor
core/words/words.factor
extra/alien/cxx/demangle/libstdcxx/libstdcxx.factor
extra/alien/fortran/fortran.factor
extra/arrays/shaped/shaped.factor
extra/asn1/asn1.factor
extra/audio/audio.factor
extra/audio/chunked-file/chunked-file.factor
extra/audio/engine/engine.factor
extra/audio/loader/loader.factor
extra/audio/vorbis/vorbis.factor
extra/backtrack/backtrack.factor
extra/base85/base85.factor
extra/benchmark/chameneos-redux/chameneos-redux.factor
extra/benchmark/tcp-echo0/tcp-echo0.factor
extra/bit/ly/ly.factor
extra/bloom-filters/bloom-filters.factor
extra/bson/reader/reader.factor
extra/c/preprocessor/preprocessor.factor
extra/cairo-demo/cairo-demo.factor
extra/constructors/constructors.factor
extra/cpu/8080/emulator/emulator.factor
extra/crypto/aes/aes.factor
extra/crypto/xor/xor.factor
extra/cuda/cuda.factor
extra/cuda/libraries/libraries.factor
extra/cuda/nvcc/nvcc.factor
extra/cuesheet/cuesheet.factor
extra/curses/curses.factor
extra/cursors/cursors.factor
extra/decimals/decimals-tests.factor
extra/decimals/decimals.factor
extra/descriptive/descriptive.factor
extra/dns/dns.factor
extra/forestdb/lib/lib.factor
extra/forestdb/paths/paths.factor
extra/fullscreen/fullscreen.factor
extra/game/models/collada/collada.factor
extra/game/models/loader/loader.factor
extra/google/translate/translate.factor
extra/gopher/gopher.factor
extra/gpu/render/render.factor
extra/gpu/shaders/shaders.factor
extra/graphviz/render/render.factor
extra/html/parser/analyzer/analyzer.factor
extra/images/atlas/atlas.factor
extra/images/bitmap/bitmap.factor
extra/images/gif/gif.factor
extra/images/png/png.factor
extra/images/tga/tga.factor
extra/images/tiff/tiff.factor
extra/imap/imap-tests.factor
extra/imap/imap.factor
extra/infix/infix.factor
extra/io/binary/fast/fast.factor
extra/io/files/acls/macosx/ffi/ffi.factor
extra/io/files/acls/macosx/macosx.factor
extra/io/streams/zeros/zeros.factor
extra/ip-parser/ip-parser.factor
extra/machine-learning/rebalancing/rebalancing.factor
extra/macho/macho.factor
extra/managed-server/managed-server.factor
extra/mason/common/common.factor
extra/math/derivatives/derivatives.factor
extra/math/matrices/laplace/laplace.factor
extra/math/transforms/fft/fft.factor
extra/memcached/memcached.factor
extra/memory/piles/piles.factor
extra/metar/metar.factor
extra/money/money.factor
extra/mongodb/connection/connection.factor
extra/mongodb/driver/driver.factor
extra/morse/morse.factor
extra/msgpack/msgpack.factor
extra/noise/noise.factor
extra/opencl/ffi/ffi-tests.factor
extra/opencl/opencl.factor
extra/pair-methods/pair-methods.factor
extra/pairs/pairs.factor
extra/pcre/pcre.factor
extra/poker/poker.factor
extra/progress-bars/progress-bars.factor
extra/redis/response-parser/response-parser.factor
extra/resolv-conf/resolv-conf.factor
extra/roles/roles.factor
extra/smalltalk/classes/classes.factor
extra/smalltalk/compiler/lexenv/lexenv.factor
extra/smalltalk/parser/parser.factor
extra/tar/tar.factor
extra/taxes/usa/fica/fica.factor
extra/terminfo/terminfo.factor
extra/tzinfo/tzinfo.factor
extra/units/units.factor
extra/usa-cities/usa-cities.factor
extra/uu/uu.factor
extra/vocabs/git/git.factor
extra/yaml/yaml.factor
extra/zeromq/zeromq.factor
extra/zoneinfo/zoneinfo.factor

index 710c918604104a06b663d1c93b4f623b8d202bf3..4e0e4c111f97e41a8b7409e03c35fd2f378ad52a 100644 (file)
@@ -55,12 +55,12 @@ UNION: c-type-name
     c-type-word pointer ;
 
 : resolve-typedef ( name -- c-type )
-    dup void? [ throw-no-c-type ] when
+    dup void? [ no-c-type ] when
     dup c-type-name? [ lookup-c-type ] when ;
 
 M: word lookup-c-type
     dup "c-type" word-prop resolve-typedef
-    [ ] [ throw-no-c-type ] ?if ;
+    [ ] [ no-c-type ] ?if ;
 
 GENERIC: c-type-class ( name -- class )
 
index ba510f7ef3e70b13295172f33a39cf3c700213cf..789094fb8beb8d38d3dc6a5276cae9070a78757c 100644 (file)
@@ -79,7 +79,7 @@ M: bad-byte-array-length summary
 
 : cast-array ( byte-array c-type -- array )
     [ binary-object ] dip [ heap-size /mod 0 = ] keep swap
-    [ <c-direct-array> ] [ throw-bad-byte-array-length ] if ; inline
+    [ <c-direct-array> ] [ bad-byte-array-length ] if ; inline
 
 : malloc-array ( n c-type -- array )
     [ heap-size calloc ] [ <c-direct-array> ] 2bi ; inline
index 1847f6294b371be2fb9352f5aaa867882afc1cd5..a7593c05b770a5367ee34831dd151d03a392d159 100644 (file)
@@ -15,7 +15,7 @@ ERROR: invalid-signed-conversion n ;
         { 2 [ [ c:short <ref> c:short deref ] ] }
         { 4 [ [ int <ref> int deref ] ] }
         { 8 [ [ longlong <ref> longlong deref ] ] }
-        [ throw-invalid-signed-conversion ]
+        [ invalid-signed-conversion ]
     } case ; inline
 
 MACRO: byte-reverse ( n signed? -- quot )
index 5e6d807db478d9c4efb84e83ee30d4b32c4b9dad..0232821c2b8339de005c46593a2787ecaf268610 100755 (executable)
@@ -80,7 +80,7 @@ M: library dispose dll>> [ dispose ] when* ;
 
 : address-of ( name library -- value )
     2dup load-library dlsym-raw
-    [ 2nip ] [ throw-no-such-symbol ] if* ;
+    [ 2nip ] [ no-such-symbol ] if* ;
 
 SYMBOL: deploy-libraries
 
@@ -89,7 +89,7 @@ deploy-libraries [ V{ } clone ] initialize
 : deploy-library ( name -- )
     dup libraries get key?
     [ deploy-libraries get 2dup member? [ 2drop ] [ push ] if ]
-    [ "deploy-library failure" throw-no-such-library ] if ;
+    [ "deploy-library failure" no-such-library ] if ;
 
 HOOK: >deployed-library-path os ( path -- path' )
 
index 507273eda2ad8021f1dd2b6930c049bdbb48100a..843f0410aa1908b3fc2f98f9c07b7146f0015d27 100755 (executable)
@@ -15,7 +15,7 @@ ERROR: bad-array-type ;
 
 : parse-array-type ( name -- c-type )
     "[" split unclip
-    [ [ "]" ?tail [ throw-bad-array-type ] unless parse-datum ] map ]
+    [ [ "]" ?tail [ bad-array-type ] unless parse-datum ] map ]
     [ (parse-c-type) ]
     bi* prefix ;
 
index db1ffc75bd416e73d46f221973e363f7c7d00b10..500784ef7f89dc219d6036c744bbf9c88faba47b 100644 (file)
@@ -24,7 +24,7 @@ CONSTANT: alphabet
 
 : base64>ch ( ch -- ch )
     $[ alphabet alphabet-inverse 0 CHAR: = pick set-nth ] nth
-    [ throw-malformed-base64 ] unless* ; inline
+    [ malformed-base64 ] unless* ; inline
 
 : (write-lines) ( column byte-array -- column' )
     output-stream get dup '[
@@ -84,7 +84,7 @@ PRIVATE>
     4 "\n\r" pick read-ignoring dup length {
         { 0 [ 2drop ] }
         { 4 [ decode4 (decode-base64) ] }
-        [ throw-malformed-base64 ]
+        [ malformed-base64 ]
     } case ;
 
 PRIVATE>
index 423b1a2809f94594327f8726eef905d1a7188e7c..590449d77ca00fa14c293b737aad1520278e9190 100644 (file)
@@ -29,7 +29,7 @@ M: no-biassoc-deletion summary
     drop "biassocs do not support deletion" ;
 
 M: biassoc delete-at
-    throw-no-biassoc-deletion ;
+    no-biassoc-deletion ;
 
 M: biassoc >alist from>> >alist ;
 
index 4068c5e2ccce7ec757da5336f170de6757e70ab6..55fec5bba3cbbe9920051a665d0c2d60675b1365 100644 (file)
@@ -47,7 +47,7 @@ PRIVATE>
 ERROR: bad-array-length n ;
 
 : <bit-array> ( n -- bit-array )
-    dup 0 < [ throw-bad-array-length ] when
+    dup 0 < [ bad-array-length ] when
     dup bits>bytes <byte-array>
     bit-array boa ; inline
 
index a4c24f0bdc36b1cf788358629116d3ecefb48955..2b4fb129ee4b9d5ff7ba43e1ef7c97d73ab40165 100644 (file)
@@ -32,7 +32,7 @@ M: bit-set delete
 ERROR: check-bit-set-failed ;
 
 : check-bit-set ( bit-set -- bit-set )
-    dup bit-set? [ throw-check-bit-set-failed ] unless ; inline
+    dup bit-set? [ check-bit-set-failed ] unless ; inline
 
 : bit-set-map ( seq1 seq2 quot -- seq )
     [ drop [ length ] bi@ [ assert= ] keep ]
index 9ece2a2cc55d0eebbb9942ce32f6d473c9b04abc..f7cb3708610ef9697f9e46229e64bcee53049df1 100644 (file)
@@ -20,7 +20,7 @@ ERROR: invalid-widthed bits #bits ;
                 dup 0 < [ neg ] when log2 <=
             ] if-zero
         ]
-    } 2|| [ throw-invalid-widthed ] when ;
+    } 2|| [ invalid-widthed ] when ;
 
 : <widthed> ( bits #bits -- widthed )
     check-widthed
@@ -89,7 +89,7 @@ ERROR: not-enough-widthed-bits widthed n ;
 
 : check-widthed-bits ( widthed n -- widthed n )
     2dup { [ nip 0 < ] [ [ #bits>> ] dip < ] } 2||
-    [ throw-not-enough-widthed-bits ] when ;
+    [ not-enough-widthed-bits ] when ;
 
 : widthed-bits ( widthed n -- bits )
     check-widthed-bits
@@ -161,7 +161,7 @@ ERROR: not-enough-bits n bit-reader ;
     ] if ;
 
 :: (peek) ( n bs endian> subseq-endian -- bits )
-    n bs enough-bits? [ n bs throw-not-enough-bits ] unless
+    n bs enough-bits? [ n bs not-enough-bits ] unless
     bs [ byte-pos>> ] [ bit-pos>> n + ] bi #bits>#bytes dupd +
     bs bytes>> subseq endian> execute( seq -- x )
     n bs subseq-endian execute( bignum n bs -- bits ) ;
index 4d10a0beb0bfc2185dbf457fcc8319e867843b7d..85e94d5a1e6941576e98040eb1d13a26ee84a403 100644 (file)
@@ -13,7 +13,7 @@ IN: bootstrap.help
 
     t load-help? set-global
 
-    [ dup lookup-vocab [ drop ] [ throw-no-vocab ] if ] require-hook [
+    [ dup lookup-vocab [ drop ] [ no-vocab ] if ] require-hook [
         dictionary get values
         [ docs-loaded?>> ] reject
         [ load-docs ] each
index ddf5471fe2f62ecd19903a351d6ac4e3c4fdf47a..dda459e5956374ef8b09e6c95036be6733b526cf 100755 (executable)
@@ -365,7 +365,7 @@ ERROR: not-in-image vocabulary word ;
 
 : fixup-word ( word -- offset )
     transfer-word dup lookup-object
-    [ ] [ [ vocabulary>> ] [ name>> ] bi throw-not-in-image ] ?if ;
+    [ ] [ [ vocabulary>> ] [ name>> ] bi not-in-image ] ?if ;
 
 : fixup-words ( -- )
     bootstrapping-image get [ dup word? [ fixup-word ] when ] map! drop ;
@@ -437,7 +437,7 @@ M: byte-array '
 ERROR: tuple-removed class ;
 
 : require-tuple-layout ( word -- layout )
-    dup tuple-layout [ ] [ throw-tuple-removed ] ?if ;
+    dup tuple-layout [ ] [ tuple-removed ] ?if ;
 
 : (emit-tuple) ( tuple -- pointer )
     [ tuple-slots ]
index 585389a5711bb9b4a88a017da32e431c3fe55300..25f2b963b414cba8cbcb345b628ddf844ad15609 100644 (file)
@@ -11,7 +11,7 @@ ERROR: box-full box ;
 
 : >box ( value box -- )
     dup occupied>>
-    [ throw-box-full ] [ t >>occupied value<< ] if ; inline
+    [ box-full ] [ t >>occupied value<< ] if ; inline
 
 ERROR: box-empty box ;
 
index a59c1762cae4f3b651c17a0d713cf216eeb93548..41444b54e6a61502f768606b6987efb48b006cbc 100644 (file)
@@ -9,6 +9,6 @@ ERROR: odd-length-hex-string string ;
 SYNTAX: HEX{
     "}" parse-tokens concat
     [ blank? ] reject
-    dup length even? [ throw-odd-length-hex-string ] unless
+    dup length even? [ odd-length-hex-string ] unless
     2 <groups> [ hex> ] B{ } map-as
     suffix! ;
index 9ed9d3bdcee6874fa5adfd3d03478ab95781694e..d3edd9022abc81586fce656b8bae2f8df1f4535b 100644 (file)
@@ -10,7 +10,7 @@ ERROR: cairo-error n message ;
 
 : (check-cairo) ( cairo_status_t -- )
     dup CAIRO_STATUS_SUCCESS =
-    [ drop ] [ [ ] [ cairo_status_to_string ] bi throw-cairo-error ] if ;
+    [ drop ] [ [ ] [ cairo_status_to_string ] bi cairo-error ] if ;
 
 : check-cairo ( cairo -- ) cairo_status (check-cairo) ;
 
index 9ed39ec7d601ea44dc05bb66ed3c792995809204..cee2358f67f161028b519f29502c1977dd64b0bf 100644 (file)
@@ -57,7 +57,7 @@ M: not-a-month summary
 <PRIVATE
 
 : check-month ( n -- n )
-    [ throw-not-a-month ] when-zero ;
+    [ not-a-month ] when-zero ;
 
 PRIVATE>
 
@@ -93,7 +93,7 @@ CONSTANT: month-abbreviations-hash
 
 : month-abbreviation-index ( string -- n )
     month-abbreviations-hash ?at
-    [ throw-not-a-month-abbreviation ] unless ;
+    [ not-a-month-abbreviation ] unless ;
 
 CONSTANT: day-counts { 0 31 28 31 30 31 30 31 31 30 31 30 31 }
 
index bc07f6e9eeb026925b5a1106fc2952f3f5557439..a7f2c589a03f8e81e1aba13d629d311d56576afe 100644 (file)
@@ -202,7 +202,7 @@ M: timestamp year. ( timestamp -- )
 ERROR: invalid-timestamp-format ;
 
 : check-timestamp ( obj/f -- obj )
-    [ throw-invalid-timestamp-format ] unless* ;
+    [ invalid-timestamp-format ] unless* ;
 
 : read-token ( seps -- token )
     [ read-until ] keep member? check-timestamp drop ;
index c8eab9a95e35a07157f2ffda50d8ac64badd45bc..41c8537d45820f1976c22a5ecda9673dd08aeaf1 100644 (file)
@@ -33,7 +33,7 @@ M: evp-md-context dispose*
 
 : digest-named ( name -- md )
     dup EVP_get_digestbyname
-    [ ] [ throw-unknown-digest ] ?if ;
+    [ ] [ unknown-digest ] ?if ;
 
 : set-digest ( name ctx -- )
     handle>> swap digest-named f EVP_DigestInit_ex ssl-error ;
index dc742c72c0fed5cdecfbca363412d8049a40226b..63c3fd159c1c7afa4bd39e866601326f33f02ba4 100644 (file)
@@ -285,7 +285,7 @@ M: struct binary-zero? binary-object uchar <c-direct-array> [ 0 = ] all? ; inlin
 
 :: (define-struct-class) ( class slot-specs offsets-quot alignment-quot -- )
     slot-specs check-struct-slots
-    slot-specs empty? [ throw-struct-must-have-slots ] when
+    slot-specs empty? [ struct-must-have-slots ] when
     class redefine-struct-tuple-class
     slot-specs offsets-quot call :> unaligned-size
     slot-specs alignment-quot call :> alignment
@@ -376,7 +376,7 @@ PRIVATE>
     scan-token {
         { ";" [ f ] }
         { "{" [ parse-struct-slot suffix! t ] }
-        [ throw-invalid-struct-slot ]
+        [ invalid-struct-slot ]
     } case ;
 
 : parse-struct-definition ( -- class slots )
@@ -413,7 +413,7 @@ SYNTAX: S@
     scan-token {
         { ";" [ f ] }
         { "{" [ parse-struct-slot` t ] }
-        [ throw-invalid-struct-slot ]
+        [ invalid-struct-slot ]
     } case ;
 
 PRIVATE>
index 058062d9004dde5a28a245a846d1d8d63c1a401f..0b641b5c015a2e8344748ffedba8c85543cce18a 100644 (file)
@@ -67,7 +67,7 @@ ERROR: no-objc-method name ;
     objc-methods get at ;
 
 : lookup-method ( selector -- method )
-    dup ?lookup-method [ ] [ throw-no-objc-method ] ?if ;
+    dup ?lookup-method [ ] [ no-objc-method ] ?if ;
 
 : lookup-sender ( name -- method )
     lookup-method message-senders get at ;
@@ -196,7 +196,7 @@ ERROR: no-objc-type name ;
 
 : decode-type ( ch -- ctype )
     1string dup objc>alien-types get at
-    [ ] [ throw-no-objc-type ] ?if ;
+    [ ] [ no-objc-type ] ?if ;
 
 : (parse-objc-type) ( i string -- ctype )
     [ [ 1 + ] dip ] [ nth ] 2bi {
index 2c2dd1ce1aa336e6b4c37be7d1dbd83f898fe3b6..dccb43d026231805c926869e877317bac4a15128 100644 (file)
@@ -58,7 +58,7 @@ ERROR: invalid-plist-object object ;
         { NSArray [ (plist-NSArray>) ] }
         { NSDictionary [ (plist-NSDictionary>) ] }
         { NSObject [ ] }
-        [ throw-invalid-plist-object ]
+        [ invalid-plist-object ]
     } objc-class-case ;
 
 : read-plist ( path -- assoc )
index 60eefab88256116c5a806845706d1fab7aad737e..ad489a51a2d26a086e5364554c22d88d2a3c879a 100644 (file)
@@ -28,6 +28,6 @@ PRIVATE>
 ERROR: no-such-color name ;
 
 : named-color ( name -- color )
-    dup colors at [ ] [ throw-no-such-color ] ?if ;
+    dup colors at [ ] [ no-such-color ] ?if ;
 
 SYNTAX: COLOR: scan-token named-color suffix! ;
index 5422a9c67940104ee5baa718dabda31f4e8ffd8e..661ed3f08dbd0d8e992bc2f1bbb55cf802fb5bbb 100644 (file)
@@ -35,7 +35,7 @@ M: bad-probabilities summary
     dup good-probabilities? [
         [ dup pair? [ prepare-pair ] [ with-drop ] if ] map
         cond>quot
-    ] [ throw-bad-probabilities ] if ;
+    ] [ bad-probabilities ] if ;
 
 MACRO: (casep) ( assoc -- quot ) (casep>quot) ;
 
index b2f2a6e1de38dab588dfa16ff0f8d75554eadd90..7264a07917a1867fd933efc750f96ec5240741f5 100644 (file)
@@ -8,7 +8,7 @@ ERROR: cannot-determine-arity ;
 
 : arity ( quots -- n )
     first infer
-    dup terminated?>> [ throw-cannot-determine-arity ] when
+    dup terminated?>> [ cannot-determine-arity ] when
     effect-height neg 1 + ;
 
 PRIVATE>
index b1462a76fad60376038f68d0ddc862768b2d4363..9243af28d2641161eef2ff516331260df3305714 100644 (file)
@@ -67,7 +67,7 @@ ERROR: vreg-not-new vreg ;
 
 :: set-ac ( vreg ac -- )
     #! Set alias class of newly-seen vreg.
-    vreg vregs>acs get key? [ vreg throw-vreg-not-new ] when
+    vreg vregs>acs get key? [ vreg vreg-not-new ] when
     ac vreg vregs>acs get set-at
     vreg ac ac>vregs push ;
 
index 94160334007774374b97eacb5965fdb052ec09d2..23c5b25b6de05e55870475e016ee68766b5ca00e 100644 (file)
@@ -7,7 +7,7 @@ ERROR: bad-successors ;
 
 : check-successors ( bb -- )
     dup successors>> [ predecessors>> member-eq? ] with all?
-    [ throw-bad-successors ] unless ;
+    [ bad-successors ] unless ;
 
 : check-cfg ( cfg -- )
     [ check-successors ] each-basic-block ;
index aaace50e56dac90e0160400959977930b4c818db..24b7e05bdc25b8d0c3e97a6c071e40468580b375 100644 (file)
@@ -28,7 +28,7 @@ ERROR: inline-intrinsics-not-supported word quot ;
 
 : enable-intrinsics ( alist -- )
     [
-        over inline? [ throw-inline-intrinsics-not-supported ] when
+        over inline? [ inline-intrinsics-not-supported ] when
         "intrinsic" set-word-prop
     ] assoc-each ;
 
index c462a528ad50c9d4db0aa95cefab49b1aeedae62..9233e26885c990ba4ca1f9ce08c20a13810bf13a 100644 (file)
@@ -121,7 +121,7 @@ MACRO: if-literals-match ( quots -- quot )
             ! node literals quot
             [ _ firstn ] dip call
             drop
-        ] [ 2drop throw-bad-simd-intrinsic ] if
+        ] [ 2drop bad-simd-intrinsic ] if
     ] ;
 
 CONSTANT: [unary]        [ ds-drop  ds-pop ]
index 778fd0a1ec2b8275f5d827c64be55259880e8ea1..81924ad4cc8531930fb9dd1d7fdcfeea19ef7175 100644 (file)
@@ -12,7 +12,7 @@ ERROR: bad-live-ranges interval ;
 : check-ranges ( live-interval -- )
     check-allocation? get [
         dup ranges>> [ [ from>> ] [ to>> ] bi <= ] all?
-        [ drop ] [ throw-bad-live-ranges ] if
+        [ drop ] [ bad-live-ranges ] if
     ] [ drop ] if ;
 
 : trim-before-ranges ( live-interval -- )
index 1914c13cf0f3328cea90be3d83774586d7536d46..6db04c7d84b783cbc632771015310e4abec7b229 100644 (file)
@@ -40,11 +40,11 @@ ERROR: splitting-atomic-interval ;
 
 : check-split ( live-interval n -- )
     check-allocation? get [
-        [ [ start>> ] dip > [ throw-splitting-too-early ] when ]
-        [ [ end>> ] dip < [ throw-splitting-too-late ] when ]
+        [ [ start>> ] dip > [ splitting-too-early ] when ]
+        [ [ end>> ] dip < [ splitting-too-late ] when ]
         [
             drop [ end>> ] [ start>> ] bi =
-            [ throw-splitting-atomic-interval ] when
+            [ splitting-atomic-interval ] when
         ] 2tri
     ] [ 2drop ] if ; inline
 
index 664956d7760122850d2f53c3f9efc528dd6988be..0ab2b9060b90318d6835dc32695e71791e9f03cd 100644 (file)
@@ -71,7 +71,7 @@ ERROR: register-already-used live-interval ;
 : check-activate ( live-interval -- )
     check-allocation? get [
         dup [ reg>> ] [ active-intervals-for [ reg>> ] map ] bi member?
-        [ throw-register-already-used ] [ drop ] if
+        [ register-already-used ] [ drop ] if
     ] [ drop ] if ;
 
 : activate ( n live-interval -- keep? )
index c85278c1f6c6d25449ea073a82b193d708b438a5..e40b41c6b6f3740bb0ca9cf591b40440030854b5 100644 (file)
@@ -30,7 +30,7 @@ ERROR: not-spilled-error vreg ;
 : vreg>spill-slot ( vreg -- spill-slot )
     dup vreg>reg dup spill-slot?
     [ nip ]
-    [ drop leader throw-not-spilled-error ] if ;
+    [ drop leader not-spilled-error ] if ;
 
 : vregs>regs ( vregs -- assoc )
     [ dup vreg>reg ] H{ } map>assoc ;
index 305bc9777f89ee6b0dff6f73882ad1b30ffaf43f..f7f54cde10b173574eb82dc87604b403312a70b4 100644 (file)
@@ -172,7 +172,7 @@ M: hairy-clobber-insn compute-live-intervals* ( insn -- )
 ERROR: bad-live-interval live-interval ;
 
 : check-start ( live-interval -- )
-    dup start>> -1 = [ throw-bad-live-interval ] [ drop ] if ;
+    dup start>> -1 = [ bad-live-interval ] [ drop ] if ;
 
 : finish-live-intervals ( live-intervals -- )
     [
index dda239d64223905f25535d0e22c2f1e810729071..cf61de5ef35eafba9676592a2335ea415abc1448 100644 (file)
@@ -18,7 +18,7 @@ ERROR: bad-numbering bb ;
 
 : check-block-numbering ( bb -- )
     dup instructions>> [ insn#>> ] map sift [ <= ] monotonic?
-    [ drop ] [ throw-bad-numbering ] if ;
+    [ drop ] [ bad-numbering ] if ;
 
 : check-numbering ( cfg -- )
     check-numbering? get
index c1d6246e267b48307fb95a5dd528ca3cde6539f2..480ce70d86a0bf64640e2e626a5b1e4a839e41de 100644 (file)
@@ -16,7 +16,7 @@ SYMBOL: representations
 ERROR: bad-vreg vreg ;
 
 : rep-of ( vreg -- rep )
-    representations get ?at [ throw-bad-vreg ] unless ;
+    representations get ?at [ bad-vreg ] unless ;
 
 : set-rep-of ( rep vreg -- )
     representations get set-at ;
index 01b447a3fe844016856d67d8316fcc8c5f6246a8..e01a030495b907e8105a547831417aad01bae95a 100644 (file)
@@ -77,7 +77,7 @@ M: scalar-rep int>rep ( dst src rep -- )
                 ! it is allowed... otherwise bail out.
                 [
                     drop 2dup [ reg-class-of ] bi@ eq?
-                    [ drop ##copy, ] [ throw-bad-conversion ] if
+                    [ drop ##copy, ] [ bad-conversion ] if
                 ]
             } case
         ]
index e9b6f682ce482a35ddedbdf8497b5480ce05bf23..c9e88cd83d888b04fe0e3f5c062893d1f94279be 100644 (file)
@@ -27,7 +27,7 @@ ERROR: vregs-shouldn't-interfere vreg1 vreg2 ;
 : try-eliminate-copy ( follower leader must? -- )
     -rot leaders 2dup = [ 3drop ] [
         2dup vregs-interfere? [
-            drop rot [ throw-vregs-shouldn't-interfere ] [ 2drop ] if
+            drop rot [ vregs-shouldn't-interfere ] [ 2drop ] if
         ] [ -rot coalesce-vregs drop ] if
     ] if ;
 
index e3982983ad7ea1a09b5491434214a24d7f532e30..73d7a492e2b0165f4b0aa01ea9c7258c4ea8d99c 100644 (file)
@@ -68,6 +68,6 @@ ERROR: bad-kill-index vreg bb ;
     2dup live-out? [ 2drop 1/0. ] [
         2dup kill-indices get at at* [ 2nip ] [
             drop 2dup live-in?
-            [ throw-bad-kill-index ] [ 2drop -1/0. ] if
+            [ bad-kill-index ] [ 2drop -1/0. ] if
         ] if
     ] if ;
index 985c4a32cea0b4828a35b8e4bdf6e6476045b3f8..210c9787729db95cf38b6dd5af1dcd1596a40c4c 100644 (file)
@@ -24,7 +24,7 @@ ERROR: bad-peek dst loc ;
 
 : insert-peeks ( from to -- )
     [ inserting-peeks ] keep
-    [ dup n>> 0 < [ throw-bad-peek ] [ ##peek, ] if ] each-insertion ;
+    [ dup n>> 0 < [ bad-peek ] [ ##peek, ] if ] each-insertion ;
 
 : insert-replaces ( from to -- )
     [ inserting-replaces ] keep
index 79d84488343a5df1702f69ee1a80c615290c555a..78bd22dad0dd1fe2e002cf2ed917863949f1ce32 100644 (file)
@@ -42,7 +42,7 @@ CONSTANT: initial-state { { 0 { } } { 0 { } } }
     [ register-write ] apply-stack-op ;
 
 : ensure-no-vacant ( state -- )
-    [ second ] map dup { { } { } } = [ drop ] [ throw-vacant-when-calling ] if ;
+    [ second ] map dup { { } { } } = [ drop ] [ vacant-when-calling ] if ;
 
 : all-live ( state -- state' )
     [ first { } 2array ] map ;
@@ -68,7 +68,7 @@ ERROR: vacant-peek insn ;
 
 : underflowable-peek? ( state peek -- ? )
     2dup loc>> >loc< swap [ 0 1 ? swap nth ] dip classify-read
-    dup 2 = [ drop throw-vacant-peek ] [ 2nip 1 = ] if ;
+    dup 2 = [ drop vacant-peek ] [ 2nip 1 = ] if ;
 
 M: ##peek visit-insn ( state insn -- state )
     dup loc>> n>> 0 >= t assert=
index 95ae1674c5cac1c5d071dfc47f4befebf8f5986c..78a6b5ee7a7de75c6e6067f16c4099e0f7537232 100644 (file)
@@ -319,7 +319,7 @@ ERROR: bug-in-fixnum* x y a b ;
         32 random-bits >fixnum
         32 random-bits >fixnum
         2dup [ fixnum* ] [ compiled-fixnum* ] 2bi 2dup =
-        [ 4drop ] [ throw-bug-in-fixnum* ] if
+        [ 4drop ] [ bug-in-fixnum* ] if
     ] times
 ] unit-test
 
index bc616fe8c869584b16fc0cb1b45744c07aed5106..a099e798905dd45794b5b079aa0167c0de0dfbaa 100644 (file)
@@ -11,11 +11,11 @@ IN: compiler.tree.checker
 ERROR: check-use-error value message ;
 
 : check-use ( value uses -- )
-    [ empty? [ "No use" throw-check-use-error ] [ drop ] if ]
+    [ empty? [ "No use" check-use-error ] [ drop ] if ]
     [
         all-unique?
         [ drop ]
-        [ "Uses not all unique" throw-check-use-error ] if
+        [ "Uses not all unique" check-use-error ] if
     ] 2bi ;
 
 : check-def-use ( -- )
@@ -62,7 +62,7 @@ ERROR: check-node-error node error ;
         [ node-defs-values check-values ]
         [ check-node* ]
         tri
-    ] [ throw-check-node-error ] recover ;
+    ] [ check-node-error ] recover ;
 
 SYMBOL: datastack
 SYMBOL: retainstack
index 786e276def9f557d22ed3abbbfa87a9d8c5ef71a..d572ba0965f5b9a16b76403587d74630bdb82c08 100644 (file)
@@ -18,7 +18,7 @@ TUPLE: definition value node uses ;
 ERROR: no-def-error value ;
 
 : (def-of) ( value def-use -- definition )
-    ?at [ throw-no-def-error ] unless ; inline
+    ?at [ no-def-error ] unless ; inline
 
 : def-of ( value -- definition )
     def-use get (def-of) ;
@@ -27,7 +27,7 @@ ERROR: multiple-defs-error ;
 
 : (def-value) ( node value def-use -- )
     2dup key? [
-        throw-multiple-defs-error
+        multiple-defs-error
     ] [
         [ [ <definition> ] keep ] dip set-at
     ] if ; inline
index b7ad8189fe3dfd656f8131e10a48eadb020ca9b6..26f68dc6c983fda414d919cc4824715f45851e3b 100644 (file)
@@ -43,7 +43,7 @@ IN: compiler.tree.propagation.call-effect.tests
             2dip
             rot
             [ 2drop ]
-            [ throw-wrong-values ]
+            [ wrong-values ]
             if
         ]
         ( obj -- a b c )
index dab787c6880c593b98026b351ea87ef51a3f8546..361bb012867334eefd5c0b32b0258ee6d9999699 100644 (file)
@@ -146,14 +146,14 @@ ERROR: uninferable ;
 : (infer-value) ( value-info -- effect )
     dup literal?>> [
         literal>>
-        [ callable? [ throw-uninferable ] unless ]
-        [ already-inlined-quot? [ throw-uninferable ] when ]
-        [ safe-infer dup +unknown+ = [ throw-uninferable ] when ] tri
+        [ callable? [ uninferable ] unless ]
+        [ already-inlined-quot? [ uninferable ] when ]
+        [ safe-infer dup +unknown+ = [ uninferable ] when ] tri
     ] [
         dup class>> {
             { \ curry [ slots>> third (infer-value) remove-effect-input ] }
             { \ compose [ slots>> last2 [ (infer-value) ] bi@ compose-effects ] }
-            [ throw-uninferable ]
+            [ uninferable ]
         } case
     ] if ;
 
index 971f79be053f11c69436efb987360711500dcb09..05ad2aeed34afdad7cdedfa55a2e735ac909d6f7 100644 (file)
@@ -73,7 +73,7 @@ ERROR: invalid-outputs #call infos ;
 
 : check-outputs ( #call infos -- infos )
     over out-d>> over [ length ] bi@ =
-    [ nip ] [ throw-invalid-outputs ] if ;
+    [ nip ] [ invalid-outputs ] if ;
 
 : call-outputs-quot ( #call word -- infos )
     dupd
index 749daf9dcd6a3bc1a55966e36f0501ebb6222f6b..e95939b378f170679b34fee74c21e50accc86fae 100644 (file)
@@ -164,7 +164,7 @@ ERROR: bad-partial-eval quot word ;
 
 : check-effect ( quot word -- )
     2dup [ infer ] [ stack-effect ] bi* effect<=
-    [ 2drop ] [ throw-bad-partial-eval ] if ;
+    [ 2drop ] [ bad-partial-eval ] if ;
 
 :: define-partial-eval ( word quot n -- )
     word [
index 7b7149c6ff293fe0a9971afe0c81667f97fbe2cf..27e35daef858bc6becdf183ffa0305ea0424e936 100644 (file)
@@ -17,7 +17,7 @@ ERROR: bad-zlib-header ;
     0 assert=
     4 data bs:read 8 assert=            ! compression method: deflate
     4 data bs:read                      ! log2(max length)-8, 32K max
-    7 <= [ throw-bad-zlib-header ] unless
+    7 <= [ bad-zlib-header ] unless
     5 data bs:seek                      ! drop check bits
     1 data bs:read 0 assert=            ! dictionary - not allowed in png
     2 data bs:seek                      ! compression level; ignore
@@ -104,7 +104,7 @@ CONSTANT: dist-table
             dup 285 = [
                 dup 264 > [
                     dup 261 - 4 /i
-                    dup 5 > [ throw-bad-zlib-data ] when
+                    dup 5 > [ bad-zlib-data ] when
                     bitstream bs:read 2array
                 ] when
             ] unless
@@ -113,7 +113,7 @@ CONSTANT: dist-table
 
             dup 3 > [
                 dup 2 - 2 /i dup 13 >
-                [ throw-bad-zlib-data ] when
+                [ bad-zlib-data ] when
                 bitstream bs:read 2array
             ] when 2array
         ] when dup 256 = not
@@ -157,7 +157,7 @@ CONSTANT: dist-table
             { 0 [ inflate-raw ] }
             { 1 [ inflate-static ] }
             { 2 [ inflate-dynamic ] }
-            { 3 [ throw-bad-zlib-data f ] }
+            { 3 [ bad-zlib-data f ] }
         } case
     ] [ produce ] keep call suffix concat ;
 
index efe026a58ebfd512798d7fb93ad40c0eddbaefc7..cb1d70c55e3e530abb867a7cb71fc411042c8080 100755 (executable)
@@ -30,7 +30,7 @@ ERROR: code-size-zero ;
 
 : <lzw-uncompress> ( input code-size class -- obj )
     new
-        swap [ throw-code-size-zero ] when-zero >>code-size
+        swap [ code-size-zero ] when-zero >>code-size
         dup code-size>> >>initial-code-size
         dup code-size>> 1 - 2^ >>clear-code
         dup clear-code>> 1 + >>end-of-information-code
index f368ebec3b8d36d52a09d5a9987cdb7da8657195..590c9d4b713725f535c2e4878020f95044cf29cd 100644 (file)
@@ -9,7 +9,7 @@ ERROR: snappy-error error ;
 <PRIVATE
 
 : check-snappy ( ret -- )
-    dup SNAPPY_OK = [ drop ] [ throw-snappy-error ] if ;
+    dup SNAPPY_OK = [ drop ] [ snappy-error ] if ;
 
 : n>outs ( n -- byte-array size_t* )
     [ <byte-array> ] [ size_t <ref> ] bi ;
index a82352327d68374210d5c72e62a9670c2fd0ee20..533d55bb68b68feaa05c0bbfa9e984f044e46f40 100644 (file)
@@ -20,13 +20,13 @@ ERROR: zlib-failed n string ;
             "stream error" "data error"
             "memory error" "buffer error" "zlib version error"
         } ?nth
-    ] if throw-zlib-failed ;
+    ] if zlib-failed ;
 
 : zlib-error ( n -- )
     dup {
         { compression.zlib.ffi:Z_OK [ drop ] }
         { compression.zlib.ffi:Z_STREAM_END [ drop ] }
-        [ dup zlib-error-message throw-zlib-failed ]
+        [ dup zlib-error-message zlib-failed ]
     } case ;
 
 : compressed-size ( byte-array -- n )
index ca72e47e8f3f8731a6d9bc8e0c9187cba78d61e3..48a685efda4074b2c86bd7032c5edaac15de243e 100644 (file)
@@ -28,7 +28,7 @@ ERROR: timed-out-error timer ;
 : wait ( queue timeout status -- )
     over [
         [ queue-timeout ] dip suspend
-        [ throw-timed-out-error ] [ stop-timer ] if
+        [ timed-out-error ] [ stop-timer ] if
     ] [
         [ drop queue ] dip suspend drop
     ] if ; inline
index 0a5891d7e2bfe1c60612b014dfa158660b744fa7..c5d1d57985dce08e3fb85849de5bafe6fdee3e64 100755 (executable)
@@ -14,7 +14,7 @@ TUPLE: count-down-tuple n promise ;
 ERROR: invalid-count-down-count count ;
 
 : <count-down> ( n -- count-down )
-    dup 0 < [ throw-invalid-count-down-count ] when
+    dup 0 < [ invalid-count-down-count ] when
     <promise> \ count-down-tuple boa
     dup count-down-check ;
 
@@ -22,7 +22,7 @@ ERROR: count-down-already-done ;
 
 : count-down ( count-down -- )
     dup n>> dup zero?
-    [ throw-count-down-already-done ]
+    [ count-down-already-done ]
     [ 1 - >>n count-down-check ] if ;
 
 : await-timeout ( count-down timeout -- )
index e685f243f689ad42ce9577cdad3426fe3e104e42..dc3e810871157f0418abb05c11b33edd4b38529a 100644 (file)
@@ -56,7 +56,7 @@ M: cannot-send-synchronous-to-self summary
 
 : send-synchronous ( message thread -- reply )
     dup self eq? [
-        throw-cannot-send-synchronous-to-self
+        cannot-send-synchronous-to-self
     ] [
         [ <synchronous> dup ] dip send
         '[ _ synchronous-reply? ] receive-if
index 44e98e2f1a9e092ff7436c309e8d1f07e218d072..f47ee05c75d9d765dd03cbf2405fd37235ef1563 100644 (file)
@@ -15,7 +15,7 @@ ERROR: promise-already-fulfilled promise ;
 
 : fulfill ( value promise -- )
     dup promise-fulfilled? [
-        throw-promise-already-fulfilled
+        promise-already-fulfilled
     ] [
         mailbox>> mailbox-put
     ] if ;
index fae9cc576ce5418beaa29096c994edd6a408517d..392b7557d69e21a5e3f4198986e4f55b0256c1fa 100644 (file)
@@ -12,7 +12,7 @@ M: negative-count-semaphore summary
     drop "Cannot have semaphore with negative count" ;
 
 : <semaphore> ( n -- semaphore )
-    dup 0 < [ throw-negative-count-semaphore ] when
+    dup 0 < [ negative-count-semaphore ] when
     <dlist> semaphore boa ;
 
 : wait-to-acquire ( semaphore timeout -- )
index 9e75dd8680288d422ebf22868a6792ef7e8797b8..77a984e75ac09a01f923ab3ff3fbda1befebee5e 100644 (file)
@@ -113,7 +113,7 @@ CONSTANT: kLSUnknownCreator f
 ERROR: core-foundation-error n ;
 
 : cf-error ( n -- )
-    dup 0 = [ drop ] [ throw-core-foundation-error ] if ;
+    dup 0 = [ drop ] [ core-foundation-error ] if ;
 
 : fsref>string ( fsref -- string )
     MAXPATHLEN [ <char-array> ] [ ] bi
index 08ce305c7a287e7aa71988e2ee884b033f89db6d..bdeb3bf0174fceabac110d6f47447d5d510fd8c3 100644 (file)
@@ -67,5 +67,5 @@ ERROR: unsupported-number-type type ;
         { kCFNumberLongType [ long (CFNumber>number) ] }
         { kCFNumberLongLongType [ longlong (CFNumber>number) ] }
         { kCFNumberDoubleType [ double (CFNumber>number) ] }
-        [ throw-unsupported-number-type ]
+        [ unsupported-number-type ]
     } case ;
index c4f20998e8929801602e9e1cf404d46dbd3a6fdb..98b6c4a189eaf2ac2e7f38ba2fa07ec127b0bd14 100644 (file)
@@ -45,7 +45,7 @@ MEMO: make-attributes ( open-font color -- hashtable )
     [
         [
             dup selection? [ string>> ] when
-            dup string? [ throw-not-a-string ] unless
+            dup string? [ not-a-string ] unless
         ] 2dip
         make-attributes <CFAttributedString> &CFRelease
         CTLineCreateWithAttributedString
index b21aeada62ab90b9eb7960d4199b0250655efe8c..6426af85cdd14b62b6abcdb969be0a9bf3b1b3f5 100644 (file)
@@ -234,14 +234,14 @@ M: operand MOV 0x88 2-operand ;
 ERROR: bad-movabs-operands dst src ;
 
 GENERIC: MOVABS ( dst src -- )
-M: object MOVABS throw-bad-movabs-operands ;
+M: object MOVABS bad-movabs-operands ;
 M: register MOVABS
     {
         { AL [ 0xa2 , cell, ] }
         { AX [ 0x66 , 0xa3 , cell, ] }
         { EAX [ 0xa3 , cell, ] }
         { RAX [ 0x48 , 0xa3 , cell, ] }
-        [ swap throw-bad-movabs-operands ]
+        [ swap bad-movabs-operands ]
     } case ;
 M: integer MOVABS
     swap {
@@ -249,7 +249,7 @@ M: integer MOVABS
         { AX [ 0x66 , 0xa1 , cell, ] }
         { EAX [ 0xa1 , cell, ] }
         { RAX [ 0x48 , 0xa1 , cell, ] }
-        [ swap throw-bad-movabs-operands ]
+        [ swap bad-movabs-operands ]
     } case ;
 
 : LEA ( dst src -- ) swap 0x8d 2-operand ;
@@ -481,7 +481,7 @@ ERROR: bad-x87-operands ;
 :: x87-st0-op ( src opcode reg -- )
     src register?
     [ src opcode reg (x87-op) ]
-    [ throw-bad-x87-operands ] if ;
+    [ bad-x87-operands ] if ;
 
 :: x87-m-st0/n-op ( dst src opcode reg -- )
     {
@@ -494,7 +494,7 @@ ERROR: bad-x87-operands ;
         { [ src ST0 = dst register? and ] [
             dst opcode 4 + reg (x87-op)
         ] }
-        [ throw-bad-x87-operands ]
+        [ bad-x87-operands ]
     } cond ;
 
 PRIVATE>
index 6368405e6597b611855062a9d99d3e1baaf4a312..2a2faa4039911995af8fbe9884a9dc9eb6838729 100644 (file)
@@ -66,7 +66,7 @@ M: indirect extended? base>> extended? ;
 ERROR: bad-index indirect ;
 
 : check-ESP ( indirect -- indirect )
-    dup index>> { ESP RSP } member-eq? [ throw-bad-index ] when ;
+    dup index>> { ESP RSP } member-eq? [ bad-index ] when ;
 
 : canonicalize ( indirect -- indirect )
     #! Modify the indirect to work around certain addressing mode
index 2b18514288d2f81db4cc1c6a24c2c8c4e88db44c..7f350d17ee82251b41d37bd7de35d327862d02d4 100644 (file)
@@ -37,7 +37,7 @@ M: postgresql-result-null summary ( obj -- str )
     drop "PQexec returned f." ;
 
 : postgresql-result-ok? ( res -- ? )
-    [ throw-postgresql-result-null ] unless*
+    [ postgresql-result-null ] unless*
     PQresultStatus
     PGRES_COMMAND_OK PGRES_TUPLES_OK 2array member? ;
 
index 837cd414f57bd828523b6a0db5f27ec436762eab..12acded9c068aabd250152d09c810a10a44bec3b 100644 (file)
@@ -278,7 +278,7 @@ M: postgresql-db-connection compound ( string object -- string' )
         { "default" [ first number>string " " glue ] }
         { "varchar" [ first number>string "(" ")" surround append ] }
         { "references" [ >reference-string ] }
-        [ drop throw-no-compound-found ]
+        [ drop no-compound-found ]
     } case ;
 
 M: postgresql-db-connection parse-db-error
index 5b7a91eefb7f94b25c6ec8fdb056ba5723611880..fb3a7e107a22526a8678c965adb7d734071de7cd 100644 (file)
@@ -158,7 +158,7 @@ M: db-connection <select-by-slots-statement> ( tuple class -- statement )
     [
         "select " 0%
         [ dupd filter-ignores ] dip
-        over empty? [ throw-all-slots-ignored ] when
+        over empty? [ all-slots-ignored ] when
         over
         [ ", " 0% ]
         [ dup column-name>> 0% 2, ] interleave
index 35ebfb12f76c2a0f439edb6889f1f849ab443001..1f954688be77606ece8487dc03781e5c986e708d 100644 (file)
@@ -12,11 +12,11 @@ ERROR: sqlite-error < db-error n string ;
 ERROR: sqlite-sql-error < sql-error n string ;
 
 : sqlite-other-error ( n -- * )
-    dup sqlite-error-messages nth throw-sqlite-error ;
+    dup sqlite-error-messages nth sqlite-error ;
 
 : sqlite-statement-error ( -- * )
     SQLITE_ERROR
-    db-connection get handle>> sqlite3_errmsg throw-sqlite-sql-error ;
+    db-connection get handle>> sqlite3_errmsg sqlite-sql-error ;
 
 : sqlite-check-result ( n -- )
     {
index 8131e18d3cb86beac70e434ccd22bbd5efa96762..9005b48f17f5ee7024b2f53aac6501f9f46e64e7 100644 (file)
@@ -100,7 +100,7 @@ ERROR: sqlite-last-id-fail ;
 
 : last-insert-id ( -- id )
     db-connection get handle>> sqlite3_last_insert_rowid
-    dup zero? [ throw-sqlite-last-id-fail ] when ;
+    dup zero? [ sqlite-last-id-fail ] when ;
 
 M: sqlite-db-connection insert-tuple-set-key ( tuple statement -- )
     execute-statement last-insert-id swap set-primary-key ;
index ac010e5a6654560310d1a51c51a2cef5a7e80f1d..0bdb2978ee1580285be2f91ad2d8b0757595aa62 100644 (file)
@@ -78,7 +78,7 @@ ERROR: no-slots-named class seq ;
         [ keys ]
         [ all-slots [ name>> ] map ] bi* diff
     ] 2bi
-    [ drop ] [ throw-no-slots-named ] if-empty ;
+    [ drop ] [ no-slots-named ] if-empty ;
 
 : define-persistent ( class table columns -- )
     pick dupd
@@ -103,7 +103,7 @@ ERROR: no-defined-persistent object ;
 
 : ensure-defined-persistent ( object -- object )
     dup { [ class? ] [ "db-table" word-prop ] } 1&& [
-        throw-no-defined-persistent
+        no-defined-persistent
     ] unless ;
 
 : create-table ( class -- )
index 5b92512d60cdac689c3715376d8af6dc501bc428..5fb86e5ea96fca005bfeddbf6238b5cfb7f2de5b 100644 (file)
@@ -38,7 +38,7 @@ SYMBOL: IGNORE
 ERROR: not-persistent class ;
 
 : db-table-name ( class -- object )
-    dup "db-table" word-prop [ ] [ throw-not-persistent ] ?if ;
+    dup "db-table" word-prop [ ] [ not-persistent ] ?if ;
 
 : db-columns ( class -- object )
     superclasses-of [ "db-columns" word-prop ] map concat ;
@@ -117,13 +117,13 @@ ERROR: unknown-modifier modifier ;
 : lookup-modifier ( obj -- string )
     {
         { [ dup array? ] [ unclip lookup-modifier swap compound ] }
-        [ persistent-table ?at [ throw-unknown-modifier ] unless third ]
+        [ persistent-table ?at [ unknown-modifier ] unless third ]
     } cond ;
 
 ERROR: no-sql-type type ;
 
 : (lookup-type) ( obj -- string )
-    persistent-table ?at [ throw-no-sql-type ] unless ;
+    persistent-table ?at [ no-sql-type ] unless ;
 
 : lookup-type ( obj -- string )
     dup array? [
@@ -152,5 +152,5 @@ ERROR: no-column column ;
     first2
     [ [ db-table-name " " glue ] [ db-columns ] bi ] dip
     swap [ column-name>> = ] with find nip
-    [ throw-no-column ] unless*
+    [ no-column ] unless*
     column-name>> "(" ")" surround append ;
index 1faf570e9714c6655e14ef97001742f531e5cef6..6a18de6c0eba702fb90663184d28b59cc19db69d 100644 (file)
@@ -38,7 +38,7 @@ M: tuple-class group-words
 
 : check-broadcast-group ( group -- group )
     dup group-words [ first stack-effect out>> empty? ] all?
-    [ throw-broadcast-words-must-have-no-outputs ] unless ;
+    [ broadcast-words-must-have-no-outputs ] unless ;
 
 ! Consultation
 
@@ -160,7 +160,7 @@ ERROR: not-a-generic word ;
 
 : check-generic ( generic -- )
     dup array? [ first ] when
-    dup generic? [ drop ] [ throw-not-a-generic ] if ;
+    dup generic? [ drop ] [ not-a-generic ] if ;
 
 PRIVATE>
 
index 79fc81c5b568786d7488d3811a2c0cbbcb272148..8ecde83a14a2081c81b2a2d657353e0c826849d7 100644 (file)
@@ -18,13 +18,13 @@ GENERIC: deque-empty? ( deque -- ? )
 ERROR: empty-deque ;
 
 : peek-front ( deque -- obj )
-    peek-front* [ drop throw-empty-deque ] unless ;
+    peek-front* [ drop empty-deque ] unless ;
 
 : ?peek-front ( deque -- obj/f )
     peek-front* [ drop f ] unless ;
 
 : peek-back ( deque -- obj )
-    peek-back* [ drop throw-empty-deque ] unless ;
+    peek-back* [ drop empty-deque ] unless ;
 
 : ?peek-back ( deque -- obj/f )
     peek-back* [ drop f ] unless ;
index 85b7484247d2bbbf619a0f7dedc9ba0d07bfe370..fe21dfe4df8eeb8441b32ef01fd042982f8dbbba 100644 (file)
@@ -37,7 +37,7 @@ M: object editor-detached? t ;
 ERROR: invalid-location file line ;
 
 : edit-location ( file line -- )
-    over [ throw-invalid-location ] unless
+    over [ invalid-location ] unless
     [ absolute-path ] dip
     editor-command [ run-and-wait-for-editor ] when* ;
 
@@ -66,7 +66,7 @@ PRIVATE>
 GENERIC: edit ( object -- )
 
 M: object edit
-    dup where [ first2 edit-location ] [ throw-cannot-find-source ] ?if ;
+    dup where [ first2 edit-location ] [ cannot-find-source ] ?if ;
 
 M: string edit edit-vocab ;
 
index 2cc26266dcd1acdb01d7a7dce65e51106cec1496..f36b04262240f45ac8b475d4ac079b1d30a86c02 100644 (file)
@@ -72,7 +72,7 @@ fmt-E     = digits "E"           => [[ first '[ _ format-scientific >upper ] ]]
 fmt-f     = digits "f"           => [[ first '[ _ format-decimal ] ]]
 fmt-x     = "x"                  => [[ [ >hex ] ]]
 fmt-X     = "X"                  => [[ [ >hex >upper ] ]]
-unknown   = (.)*                 => [[ throw-unknown-printf-directive ]]
+unknown   = (.)*                 => [[ unknown-printf-directive ]]
 
 strings_  = fmt-c|fmt-C|fmt-s|fmt-S|fmt-u
 strings   = pad width strings_   => [[ <reversed> compose-all ]]
index 2b447fa4db09c0d5b948991d8664a422c7f82d3d..cca4aef3b5fe266c81d6461e67221589606b3082 100644 (file)
@@ -15,7 +15,7 @@ GENERIC: fry ( quot -- quot' )
 
 : check-fry ( quot -- quot )
     dup { load-local load-locals get-local drop-locals } intersect
-    [ throw->r/r>-in-fry-error ] unless-empty ;
+    [ >r/r>-in-fry-error ] unless-empty ;
 
 PREDICATE: fry-specifier < word { _ @ } member-eq? ;
 
index b676798fb05d64dab0f8aa093ac275cacfb55cc2..c94d5a273a20bbc46e4774c61d3d606d47002acc 100644 (file)
@@ -28,7 +28,7 @@ IN: ftp.client
 ERROR: ftp-error got expected ;
 
 : ftp-assert ( ftp-response n -- )
-    2dup [ n>> ] dip = [ 2drop ] [ throw-ftp-error ] if ;
+    2dup [ n>> ] dip = [ 2drop ] [ ftp-error ] if ;
 
 : ftp-command ( string -- ftp-response )
     ftp-send read-response ;
index f3d4b708893110e9c227e580fb4db0a081977bff..63ceec6d76fa80eae424b609b8a8bce485c40a9f 100644 (file)
@@ -111,7 +111,7 @@ ERROR: type-error type ;
     >upper {
         { "IMAGE" [ "Binary" ] }
         { "I" [ "Binary" ] }
-        [ throw-type-error ]
+        [ type-error ]
     } case ;
 
 : handle-TYPE ( obj -- )
index 76f9e675c49aa9efc444d7a8e58b1a5a9e5894c7..4f2568b636ad67a4cd6fa1b75b4c2fefe5b46a8e 100644 (file)
@@ -77,7 +77,7 @@ M: asides call-responder*
 ERROR: end-aside-in-get-error ;
 
 : move-on ( id -- response )
-    post-request? [ throw-end-aside-in-get-error ] unless
+    post-request? [ end-aside-in-get-error ] unless
     dup method>> {
         { "GET" [ url>> <redirect> ] }
         { "HEAD" [ url>> <redirect> ] }
index 0826bf9e7be3525a52456a8202b3c1ad9939285a..57a6919ae92459fa6ece6c9b143b14fea224f5a3 100644 (file)
@@ -16,7 +16,7 @@ ERROR: no-such-word name vocab ;
 
 : string>word ( string -- word )
     ":" split1 swap 2dup lookup-word dup
-    [ 2nip ] [ drop throw-no-such-word ] if ;
+    [ 2nip ] [ drop no-such-word ] if ;
 
 : strings>words ( seq -- seq' )
     [ string>word ] map ;
@@ -32,7 +32,7 @@ ERROR: no-such-responder responder ;
 : base-path ( string -- seq )
     dup responder-nesting get
     [ second class-of superclasses-of [ name>> = ] with any? ] with find nip
-    [ first ] [ throw-no-such-responder ] ?if ;
+    [ first ] [ no-such-responder ] ?if ;
 
 : resolve-base-path ( string -- string' )
     "$" ?head [
index a4395aaaf8c44eafd8f003ca6965862203b88965..e46587f5bad5b5c658eeb1bbc3e05dc7751e2941 100644 (file)
@@ -50,7 +50,7 @@ ERROR: game-input-not-open ;
     reset-mouse ;
 : close-game-input ( -- )
     game-input-opened [
-        dup zero? [ throw-game-input-not-open ] when
+        dup zero? [ game-input-not-open ] when
         1 -
     ] change-global
     game-input-opened? [
index 49be966f0e8924a1f99509536963c5bd94fd0021..91b42d5a833611f2d7ee7ad411a9349f3607e862 100644 (file)
@@ -28,7 +28,7 @@ ERROR: nonpositive-npick n ;
 
 MACRO: npick ( n -- quot )
     {
-        { [ dup 0 <= ] [ throw-nonpositive-npick ] }
+        { [ dup 0 <= ] [ nonpositive-npick ] }
         { [ dup 1 = ] [ drop [ dup ] ] }
         [ 1 - [ dup ] [ '[ _ dip swap ] ] repeat ]
     } cond ;
index 61646275c881c77f1e49108f63f0d95f95c234d3..3d380cb68b7c58462625685beee2f173ac3f744d 100755 (executable)
@@ -39,7 +39,7 @@ M: gir-not-found summary
         current-vocab-dirs custom-gir-dirs system-gir-dirs
         3append sift :> paths
         paths [ path append-path exists? ] find nip
-        [ path append-path ] [ path paths throw-gir-not-found ] if*
+        [ path append-path ] [ path paths gir-not-found ] if*
     ] if ;
 
 : define-gir-vocab ( path -- )
index 1d975523a45918d1956393f4abb2c237de876c12..cd244cf9aaa9567705d1079f03f70c6f762cc8de 100644 (file)
@@ -79,7 +79,7 @@ ERROR: unknown-type-error type ;
 
 : get-type-info ( data-type -- info )
     qualified-type-name dup type-infos get-global at
-    [ ] [ throw-unknown-type-error ] ?if ;
+    [ ] [ unknown-type-error ] ?if ;
 
 : find-type-info ( data-type -- info/f )
     qualified-type-name type-infos get-global at ;
@@ -105,8 +105,8 @@ ERROR: deferred-type-error ;
 
 <<
 void* lookup-c-type clone
-    [ drop throw-deferred-type-error ] >>unboxer-quot
-    [ drop throw-deferred-type-error ] >>boxer-quot
+    [ drop deferred-type-error ] >>unboxer-quot
+    [ drop deferred-type-error ] >>boxer-quot
     object >>boxed-class
 "deferred-type" create-word-in typedef
 >>
index 00cc454ee9669aac6b92d431e512591a1237e08c..233d793483bc21f8f3f785ec26fd22efade18f99 100644 (file)
@@ -57,7 +57,7 @@ M: abstract-clumps group@
 TUPLE: chunking-seq { seq read-only } { n read-only } ;
 
 : check-groups ( seq n -- seq n )
-    dup 0 <= [ throw-groups-error ] when ; inline
+    dup 0 <= [ groups-error ] when ; inline
 
 : new-groups ( seq n class -- groups )
     [ check-groups ] dip boa ; inline
index 3f41c1bc26ca984e4b3d15544b0f811295a5cda0..b92bfe36687087cc668f8ca19fe2f674acb2e038 100644 (file)
@@ -24,7 +24,7 @@ TUPLE: heap { data vector } ;
 ERROR: not-a-heap object ;
 
 : check-heap ( heap -- heap )
-    dup heap? [ throw-not-a-heap ] unless ; inline
+    dup heap? [ not-a-heap ] unless ; inline
 
 TUPLE: entry value key heap index ;
 
@@ -164,7 +164,7 @@ M: bad-heap-delete summary
 <PRIVATE
 
 : entry>index ( entry heap -- n )
-    over heap>> eq? [ throw-bad-heap-delete ] unless
+    over heap>> eq? [ bad-heap-delete ] unless
     index>> { fixnum } declare ; inline
 
 PRIVATE>
index b94aa677d7ddf4bb3311496d502314f163ced2d6..0133e3b7c8cef4bf55cd57ad5798f92347b90e16 100644 (file)
@@ -30,7 +30,7 @@ SYMBOL: vocab-articles
             last assert=
         ] vocabs-quot get call( quot -- )
     ] leaks members length [
-        "%d disposable(s) leaked in example" sprintf throw-simple-lint-error
+        "%d disposable(s) leaked in example" sprintf simple-lint-error
     ] unless-zero ;
 
 : check-examples ( element -- )
@@ -88,7 +88,7 @@ SYMBOL: vocab-articles
         [ effect-values ] [ extract-values ] bi* 2dup
         sequence= [ 2drop ] [
             "$values don't match stack effect; expected %u, got %u" sprintf
-            throw-simple-lint-error
+            simple-lint-error
         ] if
     ] if ;
 
@@ -96,17 +96,17 @@ SYMBOL: vocab-articles
     [ effect-effects ] [ extract-value-effects ] bi*
     [ 2dup and [ = ] [ 2drop t ] if ] 2all? [
         "$quotation stack effects in $values don't match"
-        throw-simple-lint-error
+        simple-lint-error
     ] unless ;
 
 : check-nulls ( element -- )
     \ $values swap elements
     null swap deep-member?
-    [ "$values should not contain null" throw-simple-lint-error ] when ;
+    [ "$values should not contain null" simple-lint-error ] when ;
 
 : check-see-also ( element -- )
     \ $see-also swap elements [ rest all-unique? ] all?
-    [ "$see-also are not unique" throw-simple-lint-error ] unless ;
+    [ "$see-also are not unique" simple-lint-error ] unless ;
 
 : vocab-exists? ( name -- ? )
     [ lookup-vocab ] [ all-vocabs-list get member? ] bi or ;
@@ -116,7 +116,7 @@ SYMBOL: vocab-articles
         second
         vocab-exists? [
             "$vocab-link to non-existent vocabulary"
-            throw-simple-lint-error
+            simple-lint-error
         ] unless
     ] each ;
 
@@ -127,23 +127,23 @@ SYMBOL: vocab-articles
     [
         "\n\t" intersects? [
             "Paragraph text should not contain \\n or \\t"
-            throw-simple-lint-error
+            simple-lint-error
         ] when
     ] [
         "  " swap subseq? [
             "Paragraph text should not contain double spaces"
-            throw-simple-lint-error
+            simple-lint-error
         ] when
     ] bi ;
 
 : check-whitespace ( str1 str2 -- )
     [ " " tail? ] [ " " head? ] bi* or
-    [ "Missing whitespace between strings" throw-simple-lint-error ] unless ;
+    [ "Missing whitespace between strings" simple-lint-error ] unless ;
 
 : check-bogus-nl ( element -- )
     { { $nl } { { $nl } } } [ head? ] with any? [
         "Simple element should not begin with a paragraph break"
-        throw-simple-lint-error
+        simple-lint-error
     ] when ;
 
 : extract-slots ( elements -- seq )
@@ -158,18 +158,18 @@ SYMBOL: vocab-articles
         ] [ extract-slots ] bi*
         [ swap member? ] with reject [
             ", " join "Described $slot does not exist: " prepend
-            throw-simple-lint-error
+            simple-lint-error
         ] unless-empty
     ] [
         nip empty? not [
             "A word that is not a class has a $class-description"
-            throw-simple-lint-error
+            simple-lint-error
         ] when
     ] if ;
 
 : check-article-title ( article -- )
     article-title first LETTER?
-    [ "Article title must begin with a capital letter" throw-simple-lint-error ] unless ;
+    [ "Article title must begin with a capital letter" simple-lint-error ] unless ;
 
 : check-elements ( element -- )
     {
@@ -184,7 +184,7 @@ SYMBOL: vocab-articles
     swap '[
         _ elements [
             rest { { } { "" } } member?
-            [ "Empty $description" throw-simple-lint-error ] when
+            [ "Empty $description" simple-lint-error ] when
         ] each
     ] each ;
 
index 799e45f45be1bc1d4e8cfe857eb7495a8e279f3c..61b16ab746970726acbd010343fba14948c662d3 100644 (file)
@@ -210,11 +210,11 @@ M: word link-long-text
 ERROR: number-of-arguments found required ;
 
 : check-first ( seq -- first )
-    dup length 1 = [ length 1 throw-number-of-arguments ] unless
+    dup length 1 = [ length 1 number-of-arguments ] unless
     first-unsafe ;
 
 : check-first2 ( seq -- first second )
-    dup length 2 = [ length 2 throw-number-of-arguments ] unless
+    dup length 2 = [ length 2 number-of-arguments ] unless
     first2-unsafe ;
 
 PRIVATE>
index 505cd6734403a7d7bb39e27eda924f24c47735f3..74c14e1f87acd2667f45292464dd3b4c4a6a7543 100644 (file)
@@ -15,7 +15,7 @@ ERROR: article-expects-name-and-title got ;
 SYNTAX: ARTICLE:
     location [
         \ ; parse-until >array
-        dup length 2 < [ throw-article-expects-name-and-title ] when
+        dup length 2 < [ article-expects-name-and-title ] when
         [ first2 ] [ 2 tail ] bi <article>
         over add-article >link
     ] dip remember-definition ;
index 3f80275fc576952de28a5bec1cf3831592a3b401..995fcbca5205e52f903e7ac29c3e1e221f0e201c 100644 (file)
@@ -63,7 +63,7 @@ M: no-article summary
     drop "Help article does not exist" ;
 
 : lookup-article ( name -- article )
-    articles get ?at [ throw-no-article ] unless ;
+    articles get ?at [ no-article ] unless ;
 
 M: object valid-article? articles get key? ;
 M: object article-title lookup-article article-title ;
index 3e84da82865cb4636c4a3a6fc2e68c231d9bce46..b5b41603d263f90e651c3b81648b90034f4a00d5 100644 (file)
@@ -70,7 +70,7 @@ M: object specializer-declaration class-of ;
 ERROR: cannot-specialize word specializer ;
 
 : set-specializer ( word specializer -- )
-    over inline-recursive? [ throw-cannot-specialize ] when
+    over inline-recursive? [ cannot-specialize ] when
     "specializer" set-word-prop ;
 
 SYNTAX: HINTS:
index 5338c6d387444c8358577d800b43d3a3b2ceb5fc..1c7c73c90f07ce663e7581ed744878f87ce7a2be 100644 (file)
@@ -75,7 +75,7 @@ SYMBOL: string-context?
 ERROR: tag-not-allowed-here ;
 
 : check-tag ( -- )
-    string-context? get [ throw-tag-not-allowed-here ] when ;
+    string-context? get [ tag-not-allowed-here ] when ;
 
 : compile-tag ( tag -- )
     check-tag
index f6b890c6933d65b6dacf21f711f81d19c0e75c3d..fd48d81ecdfa12aba967e66fd73ce5b71c3bd41e 100644 (file)
@@ -39,10 +39,10 @@ M: no-boilerplate error.
 SYMBOL: title
 
 : set-title ( string -- )
-    title get [ >box ] [ throw-no-boilerplate ] if* ;
+    title get [ >box ] [ no-boilerplate ] if* ;
 
 : get-title ( -- string )
-    title get [ value>> ] [ throw-no-boilerplate ] if* ;
+    title get [ value>> ] [ no-boilerplate ] if* ;
 
 : write-title ( -- )
     get-title write ;
index 902d066b7fc7e52568b264a959f105bbf4acf9c3..b1a9daed1f857aad986bd9c7b91db4c98737f47d 100644 (file)
@@ -93,7 +93,7 @@ SYMBOL: redirects
         response "location" header redirect-url
         response code>> 307 = [ "GET" >>method ] unless
         quot (with-http-request)
-    ] [ throw-too-many-redirects ] if ; inline recursive
+    ] [ too-many-redirects ] if ; inline recursive
 
 : read-chunk-size ( -- n )
     read-crlf ";" split1 drop [ blank? ] trim-tail
index 42804604e98dcc201ca61fb12d5702088e82bedb..8348c029ff3b316adca3bc76b80e29457eb1ec9e 100644 (file)
@@ -17,10 +17,10 @@ ERROR: content-length-missing < request-error ;
 ERROR: bad-request-line < request-error parse-error ;
 
 : check-absolute ( url -- )
-    path>> dup "/" head? [ drop ] [ throw-invalid-path ] if ; inline
+    path>> dup "/" head? [ drop ] [ invalid-path ] if ; inline
 
 : parse-request-line-safe ( string -- triple )
-    [ parse-request-line ] [ nip throw-bad-request-line ] recover ;
+    [ parse-request-line ] [ nip bad-request-line ] recover ;
 
 : read-request-line ( request -- request )
     read-?crlf [ dup "" = ] [ drop read-?crlf ] while
@@ -36,7 +36,7 @@ upload-limit [ 200,000,000 ] initialize
 
 : parse-multipart-form-data ( string -- separator )
     ";" split1 nip
-    "=" split1 nip [ throw-no-boundary ] unless* ;
+    "=" split1 nip [ no-boundary ] unless* ;
 
 : maybe-limit-input ( content-length -- )
     unlimited-input upload-limit get [ min ] when* limited-input ;
@@ -49,10 +49,10 @@ upload-limit [ 200,000,000 ] initialize
     "content-length" header [
         dup string>number [
             nip dup 0 upload-limit get between? [
-                throw-invalid-content-length
+                invalid-content-length
             ] unless
-        ] [ throw-invalid-content-length ] if*
-    ] [ throw-content-length-missing ] if* ;
+        ] [ invalid-content-length ] if*
+    ] [ content-length-missing ] if* ;
 
 : parse-content ( request content-type -- post-data )
     dup <post-data> -rot over parse-content-length-safe swap
index de87bf87c9aa3ac097f32e2adb5eb1a113a89a71..6ed16ba3c3cf09684649d1b7add51ba15de5cf01 100644 (file)
@@ -58,7 +58,7 @@ os windows? [
 ERROR: unsupported-pixel-format component-order ;
 
 : check-pixel-format ( image -- )
-    component-order>> dup BGRA = [ drop ] [ throw-unsupported-pixel-format ] if ;
+    component-order>> dup BGRA = [ drop ] [ unsupported-pixel-format ] if ;
 
 : image>gdi+-bitmap ( image -- bitmap )
     dup check-pixel-format
index e48a238f80234f1e5785616c092355162a44092e..1496ae00ae76a730c44bd17917678232814aabbc 100644 (file)
@@ -13,7 +13,7 @@ SYMBOL: types
 types [ H{ } clone ] initialize
 
 : (image-class) ( type -- class )
-    >lower types get ?at [ throw-unknown-image-extension ] unless ;
+    >lower types get ?at [ unknown-image-extension ] unless ;
 
 : image-class ( path -- class )
     file-extension (image-class) ;
index 9412eaf57705690d2fdc6d558b36442fda00f202..a089fa3972ff63491b21d00af2ece8e39e90b104 100644 (file)
@@ -34,7 +34,7 @@ ALIAS: value third-unsafe
 ERROR: not-an-interval-map obj ;
 
 : check-interval-map ( map -- map )
-    dup interval-map? [ throw-not-an-interval-map ] unless ; inline
+    dup interval-map? [ not-an-interval-map ] unless ; inline
 
 PRIVATE>
 
index 3ef65ab55eb713283df5ef232fc24c6255152326..6668a3c9102cc7ecbbc3261a9508964e5be33ade 100644 (file)
@@ -14,7 +14,7 @@ TUPLE: interval-set { array uint-array read-only } ;
 ERROR: not-an-interval-set obj ;
 
 : check-interval-set ( map -- map )
-    dup interval-set? [ throw-not-an-interval-set ] unless ; inline
+    dup interval-set? [ not-an-interval-set ] unless ; inline
 
 PRIVATE>
 
index 6fcf7a59f120380c889dc65bcb7b7e1a2344e8e5..8ba0289060d4be042b16dd7c9018d28fcb74bf0d 100644 (file)
@@ -12,7 +12,7 @@ IN: inverse
 ERROR: fail ;
 M: fail summary drop "Matching failed" ;
 
-: assure ( ? -- ) [ throw-fail ] unless ; inline
+: assure ( ? -- ) [ fail ] unless ; inline
 
 : =/fail ( obj1 obj2 -- ) = assure ; inline
 
@@ -35,7 +35,7 @@ M: fail summary drop "Matching failed" ;
 ERROR: bad-math-inverse ;
 
 : next ( revquot -- revquot* first )
-    [ throw-bad-math-inverse ]
+    [ bad-math-inverse ]
     [ unclip-slice ] if-empty ;
 
 : constant-word? ( word -- ? )
@@ -44,7 +44,7 @@ ERROR: bad-math-inverse ;
     [ in>> empty? ] bi and ;
 
 : assure-constant ( constant -- quot )
-    dup word? [ throw-bad-math-inverse ] when 1quotation ;
+    dup word? [ bad-math-inverse ] when 1quotation ;
 
 : swap-inverse ( math-inverse revquot -- revquot* quot )
     next assure-constant rot second '[ @ swap @ ] ;
@@ -169,7 +169,7 @@ ERROR: missing-literal ;
 
 \ ? 2 [
     [ assert-literal ] bi@
-    [ swap [ over = ] dip swap [ 2drop f ] [ = [ t ] [ throw-fail ] if ] if ]
+    [ swap [ over = ] dip swap [ 2drop f ] [ = [ t ] [ fail ] if ] if ]
     2curry
 ] define-pop-inverse
 
@@ -255,7 +255,7 @@ DEFER: __
 
 : empty-inverse ( class -- quot )
     deconstruct-pred
-    [ tuple-slots [ ] any? [ throw-fail ] when ]
+    [ tuple-slots [ ] any? [ fail ] when ]
     compose ;
 
 \ new 1 [ ?wrapped empty-inverse ] define-pop-inverse
index 30a349ec23651493d778904293174c62881e3e38..2468c53e58addad7154f3ee3009e16dc27bcaab4 100755 (executable)
@@ -75,7 +75,7 @@ M: unix wait-for-fd ( handle event -- )
             { +input+ [ add-input-callback ] }
             { +output+ [ add-output-callback ] }
         } case
-        "I/O" suspend [ throw-io-timeout ] when
+        "I/O" suspend [ io-timeout ] when
     ] if ;
 
 : wait-for-port ( port event -- )
@@ -86,7 +86,7 @@ M: unix wait-for-fd ( handle event -- )
 ERROR: not-a-buffered-port port ;
 
 : check-buffered-port ( port -- port )
-    dup buffered-port? [ throw-not-a-buffered-port ] unless ; inline
+    dup buffered-port? [ not-a-buffered-port ] unless ; inline
 
 M: fd refill
     [ check-buffered-port buffer>> ] [ fd>> ] bi*
index 80f9f7cd15b3c6d1ca8f5f5affe72622b4ab261f..e0df575bf0bf124042c40addceabf96cce984d92 100644 (file)
@@ -103,13 +103,13 @@ PRIVATE>
 ERROR: file-not-found path bfs? quot ;
 
 : find-file-throws ( path bfs? quot -- path )
-    3dup find-file [ 2nip nip ] [ throw-file-not-found ] if* ; inline
+    3dup find-file [ 2nip nip ] [ file-not-found ] if* ; inline
 
 ERROR: sequence-expected obj ;
 
 : ensure-sequence-of-directories ( obj -- seq )
     dup string? [ 1array ] when
-    dup sequence? [ throw-sequence-expected ] unless ;
+    dup sequence? [ sequence-expected ] unless ;
 
 ! Can't make this generic# on string/sequence because of combinators
 : find-in-directories ( directories bfs? quot -- path'/f )
index 17b3a274f95a151bf2adfba37dc7dd788f9b1d02..8aec5cb496d372504c85b31b30942d26fb178fe1 100644 (file)
@@ -18,7 +18,7 @@ SYMBOL: 8-bit-encodings
 TUPLE: 8-bit { biassoc biassoc read-only } ;
 
 : 8-bit-encode ( char 8-bit -- byte )
-    biassoc>> value-at [ throw-encode-error ] unless* ; inline
+    biassoc>> value-at [ encode-error ] unless* ; inline
 
 M: 8-bit encode-char
     swap [ 8-bit-encode ] dip stream-write1 ;
index 3938431c9c2ea2c67246b26bcdceed84097353d6..63a2c69cffcaf2c6975f29ba75e24d9eee44b32f 100644 (file)
@@ -19,7 +19,7 @@ M: euc encode-char ( char stream encoding -- )
             h>b/b swap 2byte-array
             swap stream-write
         ] if
-    ] [ throw-encode-error ] if* ;
+    ] [ encode-error ] if* ;
 
 : euc-multibyte? ( ch -- ? )
     0x81 0xfe between? ;
index 57708b73cd8d59345537c857c36281a64a736b83..7e9d1678570e58c0d8a6f71264f700615e8aaeb1 100644 (file)
@@ -90,7 +90,7 @@ ascii <file-reader> xml>gb-data
 : lookup-range ( char -- byte-array )
     dup u>gb get-global interval-at [
         [ ufirst>> - ] [ bfirst>> ] bi + unlinear
-    ] [ throw-encode-error ] if* ;
+    ] [ encode-error ] if* ;
 
 M: gb18030 encode-char ( char stream encoding -- )
     drop [
index d9b9a7f6cdd751cba3a6e31554f1b1b174523210..9b2f3f44c5772941e15ef16a6ebb5940aaaf7f5b 100644 (file)
@@ -44,7 +44,7 @@ CONSTANT: switch-jis212 B{ $ ESC CHAR: $ CHAR: ( CHAR: D }
         { [ dup jis201 get-global value? ] [ drop switch-jis201 jis201 get-global ] }
         { [ dup jis208 get-global value? ] [ drop switch-jis208 jis208 get-global ] }
         { [ dup jis212 get-global value? ] [ drop switch-jis212 jis212 get-global ] }
-        [ throw-encode-error ]
+        [ encode-error ]
     } cond ;
 
 : stream-write-num ( num stream -- )
index 7b2001255ea72b4e9ecc9c34a934309a8301aa0c..cd848cd6f833028d449921fbd42ed44e67f9485e 100644 (file)
@@ -29,7 +29,7 @@ M: windows-31j <decoder> drop windows-31j-table get-global <decoder> ;
 
 TUPLE: jis assoc ;
 
-: ch>jis ( ch tuple -- jis ) assoc>> value-at [ throw-encode-error ] unless* ;
+: ch>jis ( ch tuple -- jis ) assoc>> value-at [ encode-error ] unless* ;
 : jis>ch ( jis tuple -- string ) assoc>> at replacement-char or ;
 
 : make-jis ( filename -- jis )
index a82fdbeddea519a2d4200c348ee6ff0ebbb20248..bf1d5376eb5a63d9337de717fab37d33cbd28769 100644 (file)
@@ -8,4 +8,4 @@ TUPLE: strict-state code ;
 C: strict strict-state
 
 M: strict-state decode-char
-    code>> decode-char dup replacement-char = [ throw-decode-error ] when ;
+    code>> decode-char dup replacement-char = [ decode-error ] when ;
index 0f1266c1a9b458eb553eb1b94b01c21c0b68081a..fc651c366b8480bc9d374a593e670e0a14aea6a2 100755 (executable)
@@ -147,7 +147,7 @@ ERROR: not-absolute-path ;
         [ length 2 >= ]
         [ second CHAR: : = ]
         [ first Letter? ]
-    } 1&& [ 2 head "\\" append ] [ throw-not-absolute-path ] if ;
+    } 1&& [ 2 head "\\" append ] [ not-absolute-path ] if ;
 
 <PRIVATE
 
index 28b0daed792ee61137ef9fd966b12459c5a54b92..42a5535cca988bb1839f4062e699b56d56baa57d 100644 (file)
@@ -26,7 +26,7 @@ ERROR: too-many-symlinks path n ;
 <PRIVATE
 
 : (follow-links) ( n path -- path' )
-    over 0 = [ symlink-depth get throw-too-many-symlinks ] when
+    over 0 = [ symlink-depth get too-many-symlinks ] when
     dup link-info symbolic-link?
     [ [ 1 - ] [ follow-link ] bi* (follow-links) ]
     [ nip ] if ; inline recursive
index 21a17b9f8f7eaeee7d59c75025e47ff06034ca8d..cb7e92ce631b2bb65656fc411db8d4a946da70b7 100755 (executable)
@@ -122,7 +122,7 @@ M: windows init-io ( -- )
 ERROR: seek-before-start n ;
 
 : set-seek-ptr ( n handle -- )
-    [ dup 0 < [ throw-seek-before-start ] when ] dip ptr<< ;
+    [ dup 0 < [ seek-before-start ] when ] dip ptr<< ;
 
 M: windows tell-handle ( handle -- n ) ptr>> ;
 
index 61f4dfe149120d046ef5d5338847353d782ddec0..c93309177de20879ef7675860af4c731c09f9628 100755 (executable)
@@ -116,7 +116,7 @@ M: process-already-started error.
     process>> . ;
 
 M: process >process
-    dup process-started? [ throw-process-already-started ] when
+    dup process-started? [ process-already-started ] when
     clone ;
 
 M: object >process <process> swap >>command ;
@@ -135,7 +135,7 @@ M: process-was-killed error.
 : (wait-for-process) ( process -- status )
     dup handle>>
     [ self over processes get at push "process" suspend drop ] when
-    dup killed>> [ throw-process-was-killed ] [ status>> ] if ;
+    dup killed>> [ process-was-killed ] [ status>> ] if ;
 
 : wait-for-process ( process -- status )
     [ (wait-for-process) ] with-timeout ;
@@ -158,7 +158,7 @@ M: process-failed error.
     ] [ process>> . ] bi ;
 
 : check-success ( process status -- )
-    0 = [ drop ] [ throw-process-failed ] if ;
+    0 = [ drop ] [ process-failed ] if ;
 
 : wait-for-success ( process -- )
     dup wait-for-process check-success ;
@@ -290,7 +290,7 @@ M: output-process-error error.
     [ +closed+ or ] change-stdin
     utf8 (process-reader)
     [ [ stream-contents ] [ dup (wait-for-process) ] bi* ] with-timeout
-    0 = [ 2drop ] [ throw-output-process-error ] if ;
+    0 = [ 2drop ] [ output-process-error ] if ;
 
 <PRIVATE
 
index 49b234904388f926394551cfe50f940fec5b7374..a2db855881ca86f0caa1078b70e179ebb00e9bc3 100755 (executable)
@@ -281,4 +281,4 @@ M: windows (run-process) ( process -- handle )
             dup call-CreateProcess
             lpProcessInformation>>
         ] with-destructors
-    ] [ throw-launch-error ] recover ;
+    ] [ launch-error ] recover ;
index 352d0558f457437a92ed8fbe2cc2d19356c9db45..67c245d9565d77264800ff8fc06d2f847fed2dc4 100644 (file)
@@ -16,7 +16,7 @@ HOOK: (mapped-file-r/w) os ( path length -- address handle )
 : prepare-mapped-file ( path quot -- mapped-file path' length )
     [
         [ normalize-path ] [ file-info size>> ] bi
-        [ dup 0 <= [ throw-bad-mmap-size ] [ 2drop ] if ]
+        [ dup 0 <= [ bad-mmap-size ] [ 2drop ] if ]
         [ nip mapped-file new-disposable swap >>length ]
     ] dip 2tri [ >>address ] [ >>handle ] bi* ; inline
 
index 0ff1a1465a57f377638b478533cc340a1dd82407..208e023e08348ae5f1df529d46769a4aa680d901 100644 (file)
@@ -45,7 +45,7 @@ M: input-port stream-read1
 ERROR: not-a-c-ptr object ;
 
 : check-c-ptr ( c-ptr -- c-ptr )
-    dup c-ptr? [ throw-not-a-c-ptr ] unless ; inline
+    dup c-ptr? [ not-a-c-ptr ] unless ; inline
 
 <PRIVATE
 
index 733298f3757d44bc2477371ffa81e6ef8a74ec10..14d764508975f830ad330ce610ae43997655cfa2 100755 (executable)
@@ -34,10 +34,10 @@ ERROR: server-already-running threaded-server ;
 <PRIVATE
 
 : must-be-running ( threaded-server -- threaded-server )
-    dup running-servers get in? [ throw-server-not-running ] unless ;
+    dup running-servers get in? [ server-not-running ] unless ;
 
 : must-not-be-running ( threaded-server -- threaded-server )
-    dup running-servers get in? [ throw-server-already-running ] when ;
+    dup running-servers get in? [ server-already-running ] when ;
 
 : add-running-server ( threaded-server -- )
     must-not-be-running
index d54a4b65c7cbe121d7d870a297f685eec0e30712..9cf28629f895d6d054bc67fcb2619dfc19f526f1 100644 (file)
@@ -29,7 +29,7 @@ TUPLE: openssl-context < secure-context aliens sessions ;
 ERROR: file-expected path ;
 
 : ensure-exists ( path -- path )
-    dup exists? [ throw-file-expected ] unless ; inline
+    dup exists? [ file-expected ] unless ; inline
 
 : ssl-file-path ( path -- path' )
     absolute-path ensure-exists ;
@@ -188,7 +188,7 @@ SYMBOL: default-secure-context
     ERR_get_error [
         {
             { -1 [
-                errno ECONNRESET = [ throw-premature-close ]
+                errno ECONNRESET = [ premature-close ]
                 [ throw-errno ] if
             ] }
             ! OpenSSL docs say this it is an error condition for
@@ -286,7 +286,7 @@ M: ssl-handle dispose*
 
 : check-verify-result ( ssl-handle -- )
     SSL_get_verify_result dup X509_V_OK =
-    [ drop ] [ verify-message throw-certificate-verify-error ] if ;
+    [ drop ] [ verify-message certificate-verify-error ] if ;
 
 : x509name>string ( x509name -- string )
     NID_commonName 256 <byte-array>
@@ -315,8 +315,8 @@ M: ssl-handle dispose*
     SSL_get_peer_certificate [
         [ alternative-dns-names ] [ subject-name ] bi suffix
         2dup [ subject-names-match? ] with any?
-        [ 2drop ] [ throw-subject-name-verify-error ] if
-    ] [ throw-certificate-missing-error ] if* ;
+        [ 2drop ] [ subject-name-verify-error ] if
+    ] [ certificate-missing-error ] if* ;
 
 M: openssl check-certificate ( host ssl -- )
     current-secure-context config>> verify>> [
@@ -327,20 +327,20 @@ M: openssl check-certificate ( host ssl -- )
     ] [ 2drop ] if ;
 
 : check-buffer ( port -- port )
-    dup buffer>> buffer-empty? [ throw-upgrade-buffers-full ] unless ;
+    dup buffer>> buffer-empty? [ upgrade-buffers-full ] unless ;
 
 : input/output-ports ( -- input output )
     input-stream output-stream
     [ get underlying-port check-buffer ] bi@
-    2dup [ handle>> ] bi@ eq? [ throw-upgrade-on-non-socket ] unless ;
+    2dup [ handle>> ] bi@ eq? [ upgrade-on-non-socket ] unless ;
 
 : make-input/output-secure ( input output -- )
-    dup handle>> non-ssl-socket? [ throw-upgrade-on-non-socket ] unless
+    dup handle>> non-ssl-socket? [ upgrade-on-non-socket ] unless
     [ <ssl-socket> ] change-handle
     handle>> >>handle drop ;
 
 : (send-secure-handshake) ( output -- )
-    remote-address get [ throw-upgrade-on-non-socket ] unless*
+    remote-address get [ upgrade-on-non-socket ] unless*
     secure-connection ;
 
 M: openssl send-secure-handshake
index 43220f4f0f527b8f7131bfa1ea2bc8733e7d279a..ff01ecf037b1f3e852e14509d7e4535387a9ebfd 100644 (file)
@@ -78,12 +78,12 @@ ERROR: bad-ipv4-component string ;
 
 : parse-ipv4 ( string -- seq )
     [ f ] [
-        "." split dup length 4 = [ throw-malformed-ipv4 ] unless
-        [ dup string>number [ ] [ throw-bad-ipv4-component ] ?if ] B{ } map-as
+        "." split dup length 4 = [ malformed-ipv4 ] unless
+        [ dup string>number [ ] [ bad-ipv4-component ] ?if ] B{ } map-as
     ] if-empty ;
 
 : check-ipv4 ( string -- )
-    [ parse-ipv4 drop ] [ throw-invalid-ipv4 ] recover ;
+    [ parse-ipv4 drop ] [ invalid-ipv4 ] recover ;
 
 PRIVATE>
 
@@ -93,7 +93,7 @@ M: ipv4 inet-ntop ( data addrspec -- str )
     drop 4 memory>byte-array [ number>string ] { } map-as "." join ;
 
 M: ipv4 inet-pton ( str addrspec -- data )
-    drop [ parse-ipv4 ] [ throw-invalid-ipv4 ] recover ;
+    drop [ parse-ipv4 ] [ invalid-ipv4 ] recover ;
 
 M: ipv4 address-size drop 4 ;
 
@@ -146,7 +146,7 @@ ERROR: bad-ipv4-embedded-prefix obj ;
 ERROR: more-than-8-components ;
 
 : parse-ipv6-component ( seq -- seq' )
-    [ dup hex> [ nip ] [ throw-bad-ipv6-component ] if* ] { } map-as ;
+    [ dup hex> [ nip ] [ bad-ipv6-component ] if* ] { } map-as ;
 
 : parse-ipv6 ( string -- seq )
     [ f ] [
@@ -159,7 +159,7 @@ ERROR: more-than-8-components ;
     ] if-empty ;
 
 : check-ipv6 ( string -- )
-    [ "::" split1 [ parse-ipv6 ] bi@ 2drop ] [ throw-invalid-ipv6 ] recover ;
+    [ "::" split1 [ parse-ipv6 ] bi@ 2drop ] [ invalid-ipv6 ] recover ;
 
 PRIVATE>
 
@@ -172,7 +172,7 @@ M: ipv6 inet-ntop ( data addrspec -- str )
 
 : pad-ipv6 ( string1 string2 -- seq )
     2dup [ length ] bi@ + 8 swap -
-    dup 0 < [ throw-more-than-8-components ] when
+    dup 0 < [ more-than-8-components ] when
     <byte-array> glue ;
 
 : ipv6-bytes ( seq -- bytes )
@@ -183,7 +183,7 @@ PRIVATE>
 M: ipv6 inet-pton ( str addrspec -- data )
     drop
     [ "::" split1 [ parse-ipv6 ] bi@ pad-ipv6 ipv6-bytes ]
-    [ throw-invalid-ipv6 ]
+    [ invalid-ipv6 ]
     recover ;
 
 M: ipv6 address-size drop 16 ;
@@ -293,7 +293,7 @@ ERROR: invalid-port object ;
     pick class-of byte-array assert= ;
 
 : check-connectionless-port ( port -- port )
-    dup { [ datagram-port? ] [ raw-port? ] } 1|| [ throw-invalid-port ] unless ;
+    dup { [ datagram-port? ] [ raw-port? ] } 1|| [ invalid-port ] unless ;
 
 : check-send ( packet addrspec port -- packet addrspec port )
     check-connectionless-port check-disposed check-port ;
@@ -411,7 +411,7 @@ C: <inet> inet
 M: string resolve-host
     f prepare-addrinfo f void* <ref> [
         getaddrinfo [
-            dup addrinfo-error-string throw-addrinfo-error
+            dup addrinfo-error-string addrinfo-error
         ] unless-zero
     ] keep void* deref addrinfo memory>struct
     [ parse-addrinfo-list ] keep freeaddrinfo ;
@@ -452,7 +452,7 @@ M: invalid-inet-server summary
     drop "Cannot use <server> with <inet>; use <inet4> or <inet6> instead" ;
 
 M: inet (server)
-    throw-invalid-inet-server ;
+    invalid-inet-server ;
 
 ERROR: invalid-local-address addrspec ;
 
@@ -463,7 +463,7 @@ M: invalid-local-address summary
     [
         [ ] [ inet4? ] [ inet6? ] tri or
         [ bind-local-address ]
-        [ throw-invalid-local-address ] if
+        [ invalid-local-address ] if
     ] dip with-variable ; inline
 
 : protocol-port ( protocol -- port )
index 118f01e5ccef881e3ad398b951b5119389ef2fb7..ddc5974bdedaf3abd12d121e167817b97701c8eb 100644 (file)
@@ -46,4 +46,4 @@ ERROR: invalid-duplex-stream ;
 M: duplex-stream underlying-handle
     >duplex-stream<
     [ underlying-handle ] bi@
-    [ = [ throw-invalid-duplex-stream ] when ] keep ;
+    [ = [ invalid-duplex-stream ] when ] keep ;
index 087281667afc9e2a410121c624b91f24989294d7..1455c8fa8c2812cedaf4e5efa11f35687fd2734b 100644 (file)
@@ -62,11 +62,11 @@ ERROR: limit-exceeded n stream ;
 
 : check-count-bounds ( n stream -- n stream )
     dup [ count>> ] [ limit>> ] bi >
-    [ throw-limit-exceeded ] when ;
+    [ limit-exceeded ] when ;
 
 : check-current-bounds ( n stream -- n stream )
     dup [ current>> ] [ start>> ] bi <
-    [ throw-limit-exceeded ] when ;
+    [ limit-exceeded ] when ;
 
 : adjust-limited-read ( n stream -- n stream )
     dup start>> [
index a7c340e1f181d8f45c0e7f88d7dbdfc2702be4bc..1d53d14d3ae415c721a174a43e0f0c192ba3c414 100644 (file)
@@ -17,15 +17,15 @@ M: throws-on-eof-stream dispose stream>> dispose ;
 
 M:: throws-on-eof-stream stream-read1 ( stream -- obj )
     stream stream>> stream-read1
-    [ 1 stream \ read1 throw-stream-exhausted ] unless* ;
+    [ 1 stream \ read1 stream-exhausted ] unless* ;
 
 M:: throws-on-eof-stream stream-read-unsafe ( n buf stream -- count )
     n buf stream stream>> stream-read-unsafe
-    dup n = [ n stream \ stream-read-unsafe throw-stream-exhausted ] unless ;
+    dup n = [ n stream \ stream-read-unsafe stream-exhausted ] unless ;
 
 M:: throws-on-eof-stream stream-read-partial-unsafe ( n buf stream -- count )
     n buf stream stream>> stream-read-partial-unsafe
-    [ n stream \ stream-read-partial-unsafe throw-stream-exhausted ] when-zero ;
+    [ n stream \ stream-read-partial-unsafe stream-exhausted ] when-zero ;
 
 M: throws-on-eof-stream stream-tell
     stream>> stream-tell ;
@@ -41,7 +41,7 @@ M: throws-on-eof-stream stream-length
 
 M: throws-on-eof-stream stream-read-until
     [ stream>> stream-read-until ]
-    [ '[ length _ \ read-until throw-stream-exhausted ] unless* ] bi ;
+    [ '[ length _ \ read-until stream-exhausted ] unless* ] bi ;
 
 : stream-throw-on-eof ( ..a stream quot: ( ..a stream' -- ..b ) -- ..b )
     [ <throws-on-eof-stream> ] dip with-input-stream* ; inline
index 4fc83930bac87a2aa7172a466770c8f13daeeb8a..742d8773f568f54452e83a7d136e672b31db649c 100644 (file)
@@ -22,7 +22,7 @@ ERROR: not-a-json-number string ;
     ] dip ;
 
 : json-expect ( token stream -- )
-    [ dup length ] [ stream-read ] bi* = [ throw-json-error ] unless ; inline
+    [ dup length ] [ stream-read ] bi* = [ json-error ] unless ; inline
 
 DEFER: (read-json-string)
 
@@ -54,7 +54,7 @@ DEFER: (read-json-string)
         { CHAR: t [ CHAR: \t ] }
         { CHAR: u [ over read-json-escape-unicode ] }
         [ ]
-    } case [ suffix! (read-json-string) ] [ throw-json-error ] if* ;
+    } case [ suffix! (read-json-string) ] [ json-error ] if* ;
 
 : (read-json-string) ( stream accum -- accum )
     { sbuf } declare
@@ -72,7 +72,7 @@ DEFER: (read-json-string)
     [ length 1 - ] keep [ nth-unsafe ] [ shorten ] 2bi ; inline
 
 : check-length ( seq n -- seq )
-    [ dup length ] [ >= ] bi* [ throw-json-error ] unless ; inline
+    [ dup length ] [ >= ] bi* [ json-error ] unless ; inline
 
 : v-over-push ( accum -- accum )
     { vector } declare 2 check-length
index 3d1bf3494e527a897c187d40679a10a27c74279a..5490070397e0202909bb50bb8d1dadea17981b71 100644 (file)
@@ -45,7 +45,7 @@ M: object strerror strerror_unsafe ;
 
 ERROR: libc-error errno message ;
 
-: (throw-errno) ( errno -- * ) dup strerror throw-libc-error ;
+: (throw-errno) ( errno -- * ) dup strerror libc-error ;
 
 : throw-errno ( -- * ) errno (throw-errno) ;
 
@@ -72,7 +72,7 @@ M: bad-ptr summary
     drop "Memory allocation failed" ;
 
 : check-ptr ( c-ptr -- c-ptr )
-    [ throw-bad-ptr ] unless* ;
+    [ bad-ptr ] unless* ;
 
 ERROR: realloc-error ptr size ;
 
@@ -100,7 +100,7 @@ PRIVATE>
 
 : realloc ( alien size -- newalien )
     [ >c-ptr ] dip
-    over malloc-exists? [ throw-realloc-error ] unless
+    over malloc-exists? [ realloc-error ] unless
     [ drop ] [ (realloc) check-ptr ] 2bi
     [ delete-malloc ] [ add-malloc ] bi* ;
 
index 1545fc66a02b685f412afe0f46cfef72056687ff..a95de5ffeae86552f0a48e82b2eaf0c19a53ce1b 100644 (file)
@@ -6,7 +6,7 @@ locals.errors ;
 IN: locals
 
 SYNTAX: :>
-    in-lambda? get [ throw-:>-outside-lambda-error ] unless
+    in-lambda? get [ :>-outside-lambda-error ] unless
     scan-token parse-def suffix! ;
 
 SYNTAX: [| parse-lambda append! ;
index dfb1d43aef909bcbf5c8b31e063aae6dae80e172..3036bcb7cb44f92016b064b64c4c4c2cafd5453b 100644 (file)
@@ -14,7 +14,7 @@ SYMBOL: in-lambda?
 ERROR: invalid-local-name name ;
 
 : check-local-name ( name -- name )
-    dup { "]" "]!" } member? [ throw-invalid-local-name ] when ;
+    dup { "]" "]!" } member? [ invalid-local-name ] when ;
 
 : make-local ( name -- word )
     check-local-name "!" ?tail [
@@ -79,7 +79,7 @@ M: lambda-parser parse-quotation ( -- quotation )
 : (parse-locals-definition) ( effect vars assoc reader-quot -- word quot effect )
     with-lambda-scope <lambda>
     [ nip "lambda" set-word-prop ]
-    [ nip rewrite-closures dup length 1 = [ first ] [ throw-bad-rewrite ] if ]
+    [ nip rewrite-closures dup length 1 = [ first ] [ bad-rewrite ] if ]
     [ drop nip ] 3tri ; inline
 
 : parse-locals-definition ( word reader-quot -- word quot effect )
index b823cd273550ba3af74e8e1941c409bcd4258103..283a3bbd5a112ab602d69575759cfe5c9f530a35 100644 (file)
@@ -10,7 +10,7 @@ IN: locals.rewrite.point-free
 
 : local-index ( args obj -- n )
     2dup '[ unquote _ eq? ] find drop
-    [ 2nip ] [ throw-bad-local ] if* ;
+    [ 2nip ] [ bad-local ] if* ;
 
 : read-local-quot ( args obj -- quot )
     local-index neg [ get-local ] curry ;
index 11dc896d837a1c9caae6f668baace22e118342fd..6689f959e757931b3f792770b1c44d02f892e1ee 100644 (file)
@@ -73,14 +73,14 @@ M: quotation rewrite-element rewrite-sugar* ;
 
 M: lambda rewrite-element rewrite-sugar* ;
 
-M: let rewrite-element throw-let-form-in-literal-error ;
+M: let rewrite-element let-form-in-literal-error ;
 
 M: local rewrite-element , ;
 
 M: local-reader rewrite-element , ;
 
 M: local-writer rewrite-element
-    throw-local-writer-in-literal-error ;
+    local-writer-in-literal-error ;
 
 M: word rewrite-element <wrapper> , ;
 
index fe0a8b9255c97cd6d9508f711f10c42aa94c7edd..7b2d8205ca4e8b54ec9e4da855f1cd17d20868a2 100644 (file)
@@ -26,7 +26,7 @@ log-level [ DEBUG ] initialize
 ERROR: undefined-log-level ;
 
 : log-level<=> ( log-level log-level -- <=> )
-    [ log-levels at* [ throw-undefined-log-level ] unless ] compare ;
+    [ log-levels at* [ undefined-log-level ] unless ] compare ;
 
 : log? ( log-level -- ? )
     log-level get log-level<=> +lt+ = not ;
@@ -40,7 +40,7 @@ ERROR: bad-log-message-parameters msg word level ;
 
 : check-log-message ( msg word level -- msg word level )
     3dup [ string? ] [ word? ] [ word? ] tri* and and
-    [ throw-bad-log-message-parameters ] unless ; inline
+    [ bad-log-message-parameters ] unless ; inline
 
 : log-message ( msg word level -- )
     check-log-message
index 8c5425c4108a7e9727d140dd0e974bee8ea28f6b..362e02c6e75c4305aa2cb3185cfbae864a0156ea 100644 (file)
@@ -31,7 +31,7 @@ SYNTAX: MACRO: (:) define-macro ;
 
 PREDICATE: macro < word "macro" word-prop >boolean ;
 
-M: macro make-inline throw-cannot-be-inline ;
+M: macro make-inline cannot-be-inline ;
 
 M: macro definer drop \ MACRO: \ ; ;
 
index b5735b834f885f607815375d48fa4843cae9acae..489fa83a38845e97b72d76bbeef53e0d5626b7f6 100644 (file)
@@ -51,7 +51,7 @@ M: no-match-cond summary drop "Fall-through in match-cond" ;
 
 MACRO: match-cond ( assoc -- quot )
     <reversed>
-    dup ?first callable? [ unclip ] [ [ throw-no-match-cond ] ] if
+    dup ?first callable? [ unclip ] [ [ no-match-cond ] ] if
     [
         first2
         [ [ dupd match ] curry ] dip
index 8fd652b8d9ba96a834ec2d8d9eb2d5174aad96ac..658d3586e005c9b7cb20e33c2e21ad4b2aac8912 100644 (file)
@@ -29,7 +29,7 @@ IN: math.bitwise
 
 ERROR: bit-range-error x high low ;
 : bit-range ( x high low -- y )
-    2dup { [ nip 0 < ] [ < ] } 2|| [ throw-bit-range-error ] when
+    2dup { [ nip 0 < ] [ < ] } 2|| [ bit-range-error ] when
     [ nip neg shift ] [ - 1 + ] 2bi bits ; inline
 
 : bitroll ( x s w -- y )
index 0de7db33a0ff8ca13c8fcfb15f38b2f01ab4fcd2..f57523dd02137214f7e72b79b317bb5737c0058a 100644 (file)
@@ -38,7 +38,7 @@ IN: syntax
 ERROR: malformed-complex obj ;
 
 : parse-complex ( seq -- complex )
-    dup length 2 = [ first2-unsafe rect> ] [ throw-malformed-complex ] if ;
+    dup length 2 = [ first2-unsafe rect> ] [ malformed-complex ] if ;
 
 SYNTAX: C{ \ } [ parse-complex ] parse-literal ;
 
index b0fd43deb3f3e4a77626b5772ce4c53dc21b2baf..22e07db9844cb13a90636e87696d691e9133b2c4 100644 (file)
@@ -116,7 +116,7 @@ ERROR: non-trivial-divisor n ;
 : mod-inv ( x n -- y )
     [ nip ] [ gcd 1 = ] 2bi
     [ dup 0 < [ + ] [ nip ] if ]
-    [ throw-non-trivial-divisor ] if ; foldable
+    [ non-trivial-divisor ] if ; foldable
 
 : ^mod ( x y n -- z )
     over 0 <
index a41d803410a9aa57118300eaf26fd880102e6e0b..d1894108c083b9742d7a348452e1bfe40d9a1c57 100644 (file)
@@ -174,7 +174,7 @@ ERROR: negative-power-matrix m n ;
     [ [ dupd m. ] when [ dup m. ] dip ] reduce nip ;
 
 : m^n ( m n -- n )
-    dup 0 >= [ (m^n) ] [ throw-negative-power-matrix ] if ;
+    dup 0 >= [ (m^n) ] [ negative-power-matrix ] if ;
 
 : stitch ( m -- m' )
     [ ] [ [ append ] 2map ] map-reduce ;
index 339ef5fb507d393ad7efa025b089f96e69750778..078908604489f7dac4206b5158c312c60d22e2ab 100644 (file)
@@ -19,7 +19,7 @@ ERROR: bad-integer-op word ;
 
 M: word integer-op-input-classes
     dup "input-classes" word-prop
-    [ ] [ throw-bad-integer-op ] ?if ;
+    [ ] [ bad-integer-op ] ?if ;
 
 : generic-variant ( op -- generic-op/f )
     dup "derived-from" word-prop [ first ] [ ] ?if ;
index 2c4bb9ed8ffe6d29d9b493ee1b4278ffd151f7d6..b2ce6945f2e71aa14aad830885587ae2d41460e5 100644 (file)
@@ -46,7 +46,7 @@ ERROR: negative-power-polynomial p n ;
     make-bits { 1 } [ [ over p* ] when [ p-sq ] dip ] reduce nip ;
 
 : p^ ( p n -- p^n )
-    dup 0 >= [ (p^) ] [ throw-negative-power-polynomial ] if ;
+    dup 0 >= [ (p^) ] [ negative-power-polynomial ] if ;
 
 <PRIVATE
 
index adb4364d34c6f5c48bf7c06672d7c99299211a70..a8bf097dbed4082546fa4d60bf7f627ef21cbdd8 100644 (file)
@@ -14,7 +14,7 @@ ERROR: invalid-lucas-lehmer-candidate obj ;
 
 : lucas-lehmer-guard ( obj -- obj )
     dup { [ integer? ] [ 0 > ] } 1&&
-    [ throw-invalid-lucas-lehmer-candidate ] unless ;
+    [ invalid-lucas-lehmer-candidate ] unless ;
 
 PRIVATE>
 
index 1e9e0691c319cb0acd84634e411a68826faee297..8ed1675ca7f3185649ced3abbc6a3619087039ab 100644 (file)
@@ -88,7 +88,7 @@ PRIVATE>
 ERROR: no-relative-prime n ;
 
 : find-relative-prime* ( n guess -- p )
-    [ dup 1 <= [ throw-no-relative-prime ] when ]
+    [ dup 1 <= [ no-relative-prime ] when ]
     [ >odd dup 1 <= [ drop 3 ] when ] bi*
     [ 2dup coprime? ] [ 2 + ] until nip ;
 
@@ -98,6 +98,6 @@ ERROR: no-relative-prime n ;
 ERROR: too-few-primes n numbits ;
 
 : unique-primes ( n numbits -- seq )
-    2dup 2^ estimated-primes > [ throw-too-few-primes ] when
+    2dup 2^ estimated-primes > [ too-few-primes ] when
     2dup [ random-prime ] curry replicate
     dup all-unique? [ 2nip ] [ drop unique-primes ] if ;
index 42109be718c0389e5b671a2d2a2defbfd3277210..85416f294ee27a04fc62222f53e513d75a53ae15 100644 (file)
@@ -21,7 +21,7 @@ MACRO:: test-vconvert ( from-type to-type -- quot )
         inputs narray
         [ quot with-datastack ]
         [ [ [ declaration declare quot call ] compile-call ] with-datastack ] bi
-        2dup = [ throw-optimized-vconvert-inconsistent ] unless
+        2dup = [ optimized-vconvert-inconsistent ] unless
         drop outputs firstn
     ] ;
 
index 47a9acd702accfe97824f778d56560132feeef2c..3c884710769cf7d300fc970d17fd9479c56cb531 100644 (file)
@@ -18,7 +18,7 @@ ERROR: bad-vconvert-input value expected-type ;
     { uchar ushort uint ulonglong } member-eq? ;
 
 : check-vconvert-type ( value expected-type -- value )
-    2dup instance? [ drop ] [ throw-bad-vconvert-input ] if ; inline
+    2dup instance? [ drop ] [ bad-vconvert-input ] if ; inline
 
 :: [vconvert] ( from-element to-element from-size to-size from-type to-type -- quot )
     {
@@ -46,7 +46,7 @@ ERROR: bad-vconvert-input value expected-type ;
         [ steps 1 = not ]
         [ from-element to-element [ float-type? ] bi@ xor ]
         [ from-element unsigned-type? to-element unsigned-type? not and ]
-    } 0|| [ from-type to-type throw-bad-vconvert ] when ;
+    } 0|| [ from-type to-type bad-vconvert ] when ;
 
 :: ([vpack-unsigned]) ( from-type to-type -- quot )
     from-type new simd-rep
@@ -75,7 +75,7 @@ ERROR: bad-vconvert-input value expected-type ;
         [ steps 1 = not ]
         [ from-element to-element [ float-type? ] bi@ xor ]
         [ from-element unsigned-type? not to-element unsigned-type? and ]
-    } 0|| [ from-type to-type throw-bad-vconvert ] when ;
+    } 0|| [ from-type to-type bad-vconvert ] when ;
 
 :: ([vunpack]) ( from-type to-type -- quot )
     from-type new simd-rep
@@ -98,7 +98,7 @@ MACRO:: vconvert ( from-type to-type -- quot )
     from-element heap-size :> from-size
     to-element   heap-size :> to-size
 
-    from-length to-length = [ from-type to-type throw-bad-vconvert ] unless
+    from-length to-length = [ from-type to-type bad-vconvert ] unless
 
     from-element to-element from-size to-size from-type to-type {
         { [ from-size to-size < ] [ [vunpack] ] }
index 90ccfcaf09d8df032ed1ae5cadf9735828d45de6..5434a4c24f5e2b97e23a95a107e57a65b5107484 100644 (file)
@@ -138,7 +138,7 @@ M: simd-128 byte-length drop 16 ; inline
 M: simd-128 new-sequence
     2dup length =
     [ nip [ 16 (byte-array) ] make-underlying ]
-    [ length throw-bad-simd-length ] if ; inline
+    [ length bad-simd-length ] if ; inline
 
 M: simd-128 equal?
     dup simd-rep [ drop v= vall? ] [ 3drop f ] if-both-vectors-match ; inline
@@ -321,7 +321,7 @@ c:<c-type>
     A >>boxed-class
     { A-rep alien-vector A boa } >quotation >>getter
     {
-        [ dup simd-128? [ throw-bad-simd-vector ] unless underlying>> ] 2dip
+        [ dup simd-128? [ bad-simd-vector ] unless underlying>> ] 2dip
         A-rep set-alien-vector
     } >quotation >>setter
     16 >>size
index 20082a35c0a3322e26b1e9231b5a4d35a9106fb3..197b1c0718b8d831662b7bd4fe6f73e499e3997e 100644 (file)
@@ -116,7 +116,7 @@ ERROR: unknown-content-disposition multipart ;
             [ dup mime-separator>> dump-string >>name-content ] dip
             >>name dup save-mime-part
         ] [
-             throw-unknown-content-disposition
+             unknown-content-disposition
         ] if*
     ] if* ;
 
@@ -128,7 +128,7 @@ ERROR: no-content-disposition multipart ;
             parse-content-disposition-form-data >>content-disposition
             parse-form-data
         ] }
-        [ throw-no-content-disposition ]
+        [ no-content-disposition ]
     } case ;
 
 : read-assert-sequence= ( sequence -- )
index 9562f0b40686f5b5c18aa0f9d92539509d026eea..00c6232e76bcadde28173dbfe2d8319ba190baad 100644 (file)
@@ -21,8 +21,8 @@ ERROR: read-only-slot slot ;
 
 : check-set-slot ( val slot -- val offset )
     {
-        { [ dup not ] [ throw-no-such-slot ] }
-        { [ dup read-only>> ] [ throw-read-only-slot ] }
+        { [ dup not ] [ no-such-slot ] }
+        { [ dup read-only>> ] [ read-only-slot ] }
         { [ 2dup class>> instance? not ] [ class>> bad-slot-value ] }
         [ offset>> ]
     } cond ; inline
index a374290ad7e8bb8904dfd99436b1230ba1b63847..1c2c1d462dfac8ba3a856db332fa941c76dcb9db 100644 (file)
@@ -28,7 +28,7 @@ ERROR: text-found-before-eol string ;
 : parse-here ( -- str )
     [
         lexer get
-        dup rest-of-line [ throw-text-found-before-eol ] unless-empty
+        dup rest-of-line [ text-found-before-eol ] unless-empty
         (parse-here)
     ] "" make but-last ;
 
@@ -71,7 +71,7 @@ SYNTAX: STRING:
             begin-text lexer (parse-til-line-begins)
         ] if
     ] [
-        begin-text throw-bad-heredoc
+        begin-text bad-heredoc
     ] if ;
 
 : parse-til-line-begins ( begin-text lexer -- seq )
index 0a9e4cd7b00855c1387b583559312f1448dc0ffa..d519d4f5bc975ea1f3b35a53ecef64b79c391ea2 100644 (file)
@@ -33,7 +33,7 @@ PRIVATE>
 ERROR: bad-array-length n ;
 
 : <nibble-array> ( n -- nibble-array )
-    dup 0 < [ throw-bad-array-length ] when
+    dup 0 < [ bad-array-length ] when
     dup nibbles>bytes <byte-array> nibble-array boa ; inline
 
 M: nibble-array length length>> ;
index d6a73bf83ff80c43f403038b79fbcdfde2c515c7..98b5bcc6276054d47463ca6d8ce19e8df644de83 100644 (file)
@@ -27,14 +27,14 @@ HELP: log-gl-errors
 { $description "Annotate every OpenGL function to log using " { $link log-gl-error } " if the function results in an error. Use " { $link reset-gl-functions } " to reverse this operation." } ;
 
 HELP: reset-gl-functions
-{ $description "Removes any annotations from all OpenGL functions, such as those applied by " { $link throw-gl-errors } " or " { $link log-gl-errors } "." } ;
+{ $description "Removes any annotations from all OpenGL functions, such as those applied by " { $link gl-errors } " or " { $link log-gl-errors } "." } ;
 
-{ throw-gl-errors gl-error log-gl-errors log-gl-error clear-gl-error-log reset-gl-functions } related-words
+{ gl-errors gl-error log-gl-errors log-gl-error clear-gl-error-log reset-gl-functions } related-words
 
 ARTICLE: "opengl.annotations" "OpenGL error reporting"
 "The " { $vocab-link "opengl.annotations" } " vocabulary provides some tools for tracking down GL errors:"
 { $subsections
-    throw-gl-errors
+    gl-errors
     log-gl-errors
     clear-gl-error-log
     reset-gl-functions
index 5d6ea92ff5233b9ce82d842b343064be5270d611..15d225bd04dfbbeef582fafe6abeb4a2becb8aca 100644 (file)
@@ -8,7 +8,7 @@ ERROR: unknown-gl-platform ;
     { [ os windows? ] [ "opengl.gl.windows" ] }
     { [ os macosx? ]  [ "opengl.gl.macosx" ] }
     { [ os unix? ] [ "opengl.gl.gtk" ] }
-    [ throw-unknown-gl-platform ]
+    [ unknown-gl-platform ]
 } cond use-vocab >>
 
 SYMBOL: +gl-function-counter+
index d94f7e4f02fc367dc0addd2150d920db03975c8e..ade19b2279621499bd15274559a7efde64f3454f 100644 (file)
@@ -148,7 +148,7 @@ M: XBGR fix-internal-component-order drop RGBA ;
 : image-internal-format ( component-order component-type -- internal-format )
     2dup
     [ fix-internal-component-order ] dip 2array image-internal-formats at
-    [ 2nip ] [ throw-unsupported-component-order ] if* ;
+    [ 2nip ] [ unsupported-component-order ] if* ;
 
 : reversed-type? ( component-type -- ? )
     { u-9-9-9-e5-components float-11-11-10-components } member? ;
@@ -167,7 +167,7 @@ M: XBGR fix-internal-component-order drop RGBA ;
             { RGBA [ drop GL_RGBA_INTEGER ] }
             { BGRX [ drop GL_BGRA_INTEGER ] }
             { RGBX [ drop GL_RGBA_INTEGER ] }
-            [ swap throw-unsupported-component-order ]
+            [ swap unsupported-component-order ]
         } case
     ] [
         swap {
@@ -189,22 +189,22 @@ M: XBGR fix-internal-component-order drop RGBA ;
             { INTENSITY [ drop GL_INTENSITY ] }
             { DEPTH [ drop GL_DEPTH_COMPONENT ] }
             { DEPTH-STENCIL [ drop GL_DEPTH_STENCIL ] }
-            [ swap throw-unsupported-component-order ]
+            [ swap unsupported-component-order ]
         } case
     ] if ;
 
 GENERIC: (component-type>type) ( component-order component-type -- gl-type )
 
-M: object (component-type>type) throw-unsupported-component-order ;
+M: object (component-type>type) unsupported-component-order ;
 
 : four-channel-alpha-first? ( component-order component-type -- ? )
     over component-count 4 =
     [ drop alpha-channel-precedes-colors? ]
-    [ throw-unsupported-component-order ] if ;
+    [ unsupported-component-order ] if ;
 
 : not-alpha-first ( component-order component-type -- )
     over alpha-channel-precedes-colors?
-    [ throw-unsupported-component-order ]
+    [ unsupported-component-order ]
     [ 2drop ] if ;
 
 M: ubyte-components          (component-type>type)
@@ -238,22 +238,22 @@ M: u-10-10-10-2-components   (component-type>type)
 M: u-24-components           (component-type>type)
     over DEPTH =
     [ 2drop GL_UNSIGNED_INT ]
-    [ throw-unsupported-component-order ] if ;
+    [ unsupported-component-order ] if ;
 
 M: u-24-8-components         (component-type>type)
     over DEPTH-STENCIL =
     [ 2drop GL_UNSIGNED_INT_24_8 ]
-    [ throw-unsupported-component-order ] if ;
+    [ unsupported-component-order ] if ;
 
 M: u-9-9-9-e5-components     (component-type>type)
     over BGR =
     [ 2drop GL_UNSIGNED_INT_5_9_9_9_REV ]
-    [ throw-unsupported-component-order ] if ;
+    [ unsupported-component-order ] if ;
 
 M: float-11-11-10-components (component-type>type)
     over BGR =
     [ 2drop GL_UNSIGNED_INT_10F_11F_11F_REV ]
-    [ throw-unsupported-component-order ] if ;
+    [ unsupported-component-order ] if ;
 
 : image-data-format ( component-order component-type -- gl-format gl-type )
     [ (component-order>format) ] [ (component-type>type) ] 2bi ;
index 25ab4386d8ddc3077ee4bb2965058f60dd8cae9e..8fe0e9f8a9a1efab7120850a0bd813e227ca8f7d 100644 (file)
@@ -142,7 +142,7 @@ ERROR: packed-read-fail str bytes ;
 
 : read-packed-bytes ( str -- bytes )
     dup packed-length [ read dup length ] keep =
-    [ nip ] [ throw-packed-read-fail ] if ; inline
+    [ nip ] [ packed-read-fail ] if ; inline
 
 PRIVATE>
 
index d5ff45c206c432bb9fd8201162a956358b5e4364..49ad57ac1bd38e560690186d8c20367ad9b9863d 100644 (file)
@@ -18,7 +18,7 @@ ERROR: no-rule rule parser ;
 <PRIVATE
 
 : lookup-rule ( rule parser -- rule' )
-        2dup rule [ 2nip ] [ throw-no-rule ] if* ;
+        2dup rule [ 2nip ] [ no-rule ] if* ;
 
 TUPLE: tokenizer-tuple any one many ;
 
@@ -48,7 +48,7 @@ M: no-tokenizer summary
     drop "Tokenizer not found" ;
 
 SYNTAX: TOKENIZER:
-    scan-word-name dup search [ nip ] [ throw-no-tokenizer ] if*
+    scan-word-name dup search [ nip ] [ no-tokenizer ] if*
     execute( -- tokenizer ) \ tokenizer set-global ;
 
 TUPLE: ebnf-non-terminal symbol ;
@@ -395,7 +395,7 @@ M: redefined-rule summary
 M: ebnf-rule (transform) ( ast -- parser )
     dup elements>>
     (transform) [
-        swap symbol>> dup get parser? [ throw-redefined-rule ] [ set ] if
+        swap symbol>> dup get parser? [ redefined-rule ] [ set ] if
     ] keep ;
 
 M: ebnf-sequence (transform) ( ast -- parser )
index 5294f82038d44955a141836ccf42034a03a206f3..f08f0359f9716acf9005b86db76c8ca9a666d60c 100644 (file)
@@ -618,7 +618,7 @@ SYNTAX: PEG:
             def call compile :> compiled-def
             [
               dup compiled-def compiled-parse
-              [ ast>> ] [ word throw-parse-failed ] ?if
+              [ ast>> ] [ word parse-failed ] ?if
             ]
             word swap effect define-declared
           ] with-compilation-unit
index bf2e93fa7142debbbd27137412ada74562fe1f5e..862eed1aa906268323f9ffae4aadaf6babdec9c8 100644 (file)
@@ -161,7 +161,7 @@ PRIVATE>
 
 M: persistent-vector ppop ( pvec -- pvec' )
     dup count>> {
-        { 0 [ throw-empty-error ] }
+        { 0 [ empty-error ] }
         { 1 [ drop T{ persistent-vector } ] }
         [
             [
index 5bbf18649417899bf5006ed472e18b7a87d74cbe..2584412bcd06ed799e073f7857d22b881a34e2f5 100644 (file)
@@ -35,9 +35,9 @@ ERROR: no-random-number-generator ;
 M: no-random-number-generator summary
     drop "Random number generator is not defined." ;
 
-M: f random-bytes* ( n obj -- * ) throw-no-random-number-generator ;
+M: f random-bytes* ( n obj -- * ) no-random-number-generator ;
 
-M: f random-32* ( obj -- * ) throw-no-random-number-generator ;
+M: f random-32* ( obj -- * ) no-random-number-generator ;
 
 : random-32 ( -- n )
     random-generator get random-32* ;
@@ -127,7 +127,7 @@ M: hash-set random
 ERROR: too-many-samples seq n ;
 
 : sample ( seq n -- seq' )
-    2dup [ length ] dip < [ throw-too-many-samples ] when
+    2dup [ length ] dip < [ too-many-samples ] when
     [ [ length iota >array ] dip [ randomize-n-last ] keep tail-slice* ]
     [ drop ] 2bi nths-unsafe ;
 
index 3b20527f5f388e46d5812ef6970678d82e8dc4ab..af02540ba0671a5d0464fe620b68c396753f3862 100755 (executable)
@@ -33,7 +33,7 @@ ERROR: acquire-crypto-context-failed provider type error ;
     [ acquire-crypto-context ]
     [
         drop [ create-crypto-context ]
-        [ throw-acquire-crypto-context-failed ] recover
+        [ acquire-crypto-context-failed ] recover
     ] recover ;
 
 : initialize-crypto-context ( crypto-context -- crypto-context )
index fb9336c4044cfbc46891bfe96f97286c11d486fc..01cff989018f80ce0580acc25dba5127adf67f4a 100644 (file)
@@ -13,7 +13,7 @@ IN: regexp.parser
 ERROR: bad-number ;
 
 : ensure-number ( n -- n )
-    [ throw-bad-number ] unless* ;
+    [ bad-number ] unless* ;
 
 :: at-error ( key assoc quot: ( key -- replacement ) -- value )
     key assoc at* [ drop key quot call ] unless ; inline
@@ -45,13 +45,13 @@ MEMO: simple-category-table ( -- table )
         { [ "script=" ?head ] [
             dup simple-script-table at
             [ <script-class> ]
-            [ "script=" prepend throw-bad-class ] ?if
+            [ "script=" prepend bad-class ] ?if
         ] }
-        [ throw-bad-class ]
+        [ bad-class ]
     } cond ;
 
 : unicode-class ( name -- class )
-    dup parse-unicode-class [ ] [ throw-bad-class ] ?if ;
+    dup parse-unicode-class [ ] [ bad-class ] ?if ;
 
 : name>class ( name -- class )
     >string simple {
@@ -106,7 +106,7 @@ MEMO: simple-category-table ( -- table )
 ERROR: nonexistent-option name ;
 
 : ch>option ( ch -- singleton )
-    dup options-assoc at [ ] [ throw-nonexistent-option ] ?if ;
+    dup options-assoc at [ ] [ nonexistent-option ] ?if ;
 
 : option>ch ( option -- string )
     options-assoc value-at ;
@@ -198,7 +198,7 @@ Number = (!(","|"}").)* => [[ string>number ensure-number ]]
 Times = "," Number:n "}" => [[ 0 n <from-to> ]]
       | Number:n ",}" => [[ n <at-least> ]]
       | Number:n "}" => [[ n n <from-to> ]]
-      | "}" => [[ throw-bad-number ]]
+      | "}" => [[ bad-number ]]
       | Number:n "," Number:m "}" => [[ n m <from-to> ]]
 
 Repeated = Element:e "{" Times:t => [[ e t <times> ]]
index a5791d7ac7ce54cc8f2498835f98bbd683bd592f..346226bf4e7cb5659e873b66cdc77ece722f4f2d 100644 (file)
@@ -18,7 +18,7 @@ CONSTANT: roman-values
 ERROR: roman-range-error n ;
 
 : roman-range-check ( n -- n )
-    dup 1 10000 between? [ throw-roman-range-error ] unless ;
+    dup 1 10000 between? [ roman-range-error ] unless ;
 
 : roman-digit-index ( ch -- n )
     1string roman-digits index ; inline
index 4d83294dd0f2b1812b5a2ec8d9e64e058986a48e..ad28dde00dd0715fd98169dfa271a706e54f2e94 100644 (file)
@@ -34,11 +34,11 @@ ERROR: unrolled-2bounds-error
 
 <PRIVATE
 : unrolled-bounds-check ( seq len quot -- seq len quot )
-    2over swap length > [ 2over throw-unrolled-bounds-error ] when ; inline
+    2over swap length > [ 2over unrolled-bounds-error ] when ; inline
 
 :: unrolled-2bounds-check ( xseq yseq len quot -- xseq yseq len quot )
     { [ len xseq length > ] [ len yseq length > ] } 0||
-    [ xseq yseq len throw-unrolled-2bounds-error ]
+    [ xseq yseq len unrolled-2bounds-error ]
     [ xseq yseq len quot ] if ; inline
 
 : (unrolled-each) ( seq len quot -- len quot )
index 47429b823d8a06f71de463c3b5c6ce23a6c50058..48ea2c181443c315d3bf9dfe82794f1581a7bef6 100644 (file)
@@ -69,7 +69,7 @@ ERROR: bad-email-address email ;
 : validate-address ( string -- string' )
     #! Make sure we send funky stuff to the server by accident.
     dup "\r\n>" intersects?
-    [ throw-bad-email-address ] when ;
+    [ bad-email-address ] when ;
 
 : mail-from ( fromaddr -- )
     validate-address
@@ -130,17 +130,17 @@ ERROR: smtp-transaction-failed < smtp-error ;
 : check-response ( response -- )
     dup code>> {
         { [ dup { 220 235 250 221 354 } member? ] [ 2drop ] }
-        { [ dup 400 499 between? ] [ drop throw-smtp-server-busy ] }
-        { [ dup 500 = ] [ drop throw-smtp-syntax-error ] }
-        { [ dup 501 = ] [ drop throw-smtp-command-not-implemented ] }
-        { [ dup 500 509 between? ] [ drop throw-smtp-syntax-error ] }
-        { [ dup 530 539 between? ] [ drop throw-smtp-bad-authentication ] }
-        { [ dup 550 = ] [ drop throw-smtp-mailbox-unavailable ] }
-        { [ dup 551 = ] [ drop throw-smtp-user-not-local ] }
-        { [ dup 552 = ] [ drop throw-smtp-exceeded-storage-allocation ] }
-        { [ dup 553 = ] [ drop throw-smtp-bad-mailbox-name ] }
-        { [ dup 554 = ] [ drop throw-smtp-transaction-failed ] }
-        [ drop throw-smtp-error ]
+        { [ dup 400 499 between? ] [ drop smtp-server-busy ] }
+        { [ dup 500 = ] [ drop smtp-syntax-error ] }
+        { [ dup 501 = ] [ drop smtp-command-not-implemented ] }
+        { [ dup 500 509 between? ] [ drop smtp-syntax-error ] }
+        { [ dup 530 539 between? ] [ drop smtp-bad-authentication ] }
+        { [ dup 550 = ] [ drop smtp-mailbox-unavailable ] }
+        { [ dup 551 = ] [ drop smtp-user-not-local ] }
+        { [ dup 552 = ] [ drop smtp-exceeded-storage-allocation ] }
+        { [ dup 553 = ] [ drop smtp-bad-mailbox-name ] }
+        { [ dup 554 = ] [ drop smtp-transaction-failed ] }
+        [ drop smtp-error ]
     } cond ;
 
 : get-ok ( -- ) receive-response check-response ;
@@ -168,7 +168,7 @@ ERROR: invalid-header-string string ;
 
 : validate-header ( string -- string' )
     dup "\r\n" intersects?
-    [ throw-invalid-header-string ] when ;
+    [ invalid-header-string ] when ;
 
 : write-header ( key value -- )
     [ validate-header write ]
index 5e593c4fab1f52fe5299a75b970604389f00e8b7..7976a5c14865f8b062383393de22f7d97e1642de 100644 (file)
@@ -136,35 +136,35 @@ ERROR: specialized-array-vocab-not-loaded c-type ;
 M: c-type-word c-array-constructor
     underlying-type
     dup [ name>> "<" "-array>" surround ] [ specialized-array-vocab ] bi lookup-word
-    [ ] [ throw-specialized-array-vocab-not-loaded ] ?if ; foldable
+    [ ] [ specialized-array-vocab-not-loaded ] ?if ; foldable
 
 M: pointer c-array-constructor drop void* c-array-constructor ;
 
 M: c-type-word c-(array)-constructor
     underlying-type
     dup [ name>> "(" "-array)" surround ] [ specialized-array-vocab ] bi lookup-word
-    [ ] [ throw-specialized-array-vocab-not-loaded ] ?if ; foldable
+    [ ] [ specialized-array-vocab-not-loaded ] ?if ; foldable
 
 M: pointer c-(array)-constructor drop void* c-(array)-constructor ;
 
 M: c-type-word c-direct-array-constructor
     underlying-type
     dup [ name>> "<direct-" "-array>" surround ] [ specialized-array-vocab ] bi lookup-word
-    [ ] [ throw-specialized-array-vocab-not-loaded ] ?if ; foldable
+    [ ] [ specialized-array-vocab-not-loaded ] ?if ; foldable
 
 M: pointer c-direct-array-constructor drop void* c-direct-array-constructor ;
 
 M: c-type-word c-array-type
     underlying-type
     dup [ name>> "-array" append ] [ specialized-array-vocab ] bi lookup-word
-    [ ] [ throw-specialized-array-vocab-not-loaded ] ?if ; foldable
+    [ ] [ specialized-array-vocab-not-loaded ] ?if ; foldable
 
 M: pointer c-array-type drop void* c-array-type ;
 
 M: c-type-word c-array-type?
     underlying-type
     dup [ name>> "-array?" append ] [ specialized-array-vocab ] bi lookup-word
-    [ ] [ throw-specialized-array-vocab-not-loaded ] ?if ; foldable
+    [ ] [ specialized-array-vocab-not-loaded ] ?if ; foldable
 
 M: pointer c-array-type? drop void* c-array-type? ;
 
index 8f97d38f92c2ac818c2d596269a21accfe11e916..5426b773b24ff0c12e305e15d3f5fbea08e02063 100644 (file)
@@ -297,7 +297,7 @@ DEFER: an-inline-word
 ERROR: custom-error ;
 
 { T{ effect f { } { } t } } [
-    [ throw-custom-error ] infer
+    [ custom-error ] infer
 ] unit-test
 
 : funny-throw ( a -- * ) throw ; inline
@@ -307,7 +307,7 @@ ERROR: custom-error ;
 ] unit-test
 
 { T{ effect f { } { } t } } [
-    [ throw-custom-error inference-error ] infer
+    [ custom-error inference-error ] infer
 ] unit-test
 
 { T{ effect f { "x" } { "x" "x" } t } } [
index 7fd3bd6b14b85e8e9f77a38cfb7c161d60fc6563..dd71e63ffb428622ed65684306d8f6ce1f56e8da 100644 (file)
@@ -33,7 +33,7 @@ PREDICATE: annotated < word "unannotated-def" word-prop >boolean ;
 <PRIVATE
 
 : check-annotate-twice ( word -- word )
-    dup annotated? [ throw-cannot-annotate-twice ] when ;
+    dup annotated? [ cannot-annotate-twice ] when ;
 
 : annotate-generic ( word quot -- )
     [ "methods" word-prop values ] dip each ; inline
index 1ff38107af44ab51faffbd38d936a8635fbc743b..0e3c5cbb8426f27f5418f4e7aae6f7d8cb291a21 100644 (file)
@@ -24,13 +24,13 @@ ERROR: invalid-stream-read-unsafe-return out-len in-len buf port word ;
 :: check-stream-read-unsafe-before ( n buf stream word -- n buf stream )
     buf alien? [ n buf port ] [
         n buf byte-length >
-        [ n buf stream word throw-invalid-stream-read-unsafe ]
+        [ n buf stream word invalid-stream-read-unsafe ]
         [ n buf stream ] if
     ] if ; inline
 
 :: check-stream-read-unsafe-after ( count n buf stream word -- count )
     count n >
-    [ count n buf stream word throw-invalid-stream-read-unsafe-return ]
+    [ count n buf stream word invalid-stream-read-unsafe-return ]
     [ count ] if ;
 
 : (assert-stream-read-unsafe) ( word -- )
index 8d830e6ba4b1fe4ebb174b7866bdc3beee1140cc..1523cd5f9838ad3c435110e6d62e02c623b4b3dd 100644 (file)
@@ -25,7 +25,7 @@ ERROR: can't-deploy-library-file library ;
 : copy-library ( dir library -- )
     dup find-library-file
     [ swap over file-name append-path copy-file ]
-    [ throw-can't-deploy-library-file ] ?if ;
+    [ can't-deploy-library-file ] ?if ;
 
 : copy-libraries ( manifest name dir -- )
     append-path swap libraries>> [ copy-library ] with each ;
index 403a9bfbd844be83cf0e97636647161cb3ad79b4..b647c5b5c7d49a98b4c46e095ad926b5e19319ee 100644 (file)
@@ -7,10 +7,10 @@ IN: tools.deploy
 ERROR: no-vocab-main vocab ;
 
 : check-vocab-main ( vocab -- vocab )
-    [ require ] keep dup vocab-main [ throw-no-vocab-main ] unless ;
+    [ require ] keep dup vocab-main [ no-vocab-main ] unless ;
 
 : deploy ( vocab -- )
-    dup find-vocab-root [ check-vocab-main deploy* ] [ throw-no-vocab ] if ;
+    dup find-vocab-root [ check-vocab-main deploy* ] [ no-vocab ] if ;
 
 : deploy-image-only ( vocab image -- )
     [ vm-path ] 2dip
index 7b402ab436a743c5367958d7cae3ab8ed8667a89..195a3db97631d000ffd60898362b3353ef99e664 100644 (file)
@@ -2,4 +2,4 @@ IN: specialized-arrays
 
 ERROR: cannot-define-array-in-deployed-app type ;
 
-: define-array-vocab ( type -- ) throw-cannot-define-array-in-deployed-app ;
+: define-array-vocab ( type -- ) cannot-define-array-in-deployed-app ;
index 367aa21fff3c4653fac12018ee53ceee85fc30d2..05e16ca10f1581fc31e132731eeca937dd785de9 100644 (file)
@@ -23,7 +23,7 @@ ERROR: image-too-big actual-size max-size ;
         cpu ppc? [ 100000 + ] when
         os windows? [ 160000 + ] when
     ] bi*
-    2dup <= [ 2drop ] [ throw-image-too-big ] if ;
+    2dup <= [ 2drop ] [ image-too-big ] if ;
 
 : deploy-test-command ( -- args )
     os macosx?
index adf2bdd60041ae11852b9d8b9a03e0bca1de111a..e656597a38f4d3c6392c2deab3eeebec4d40aec4 100755 (executable)
@@ -58,10 +58,10 @@ ERROR: unsupported-ico-format bytes format ;
 
 : check-ico-type ( bytes -- bytes )
     dup "PNG" head? [
-        "PNG" throw-unsupported-ico-format
+        "PNG" unsupported-ico-format
     ] when
     dup B{ 0 0 } head? [
-        "UNKNOWN" throw-unsupported-ico-format
+        "UNKNOWN" unsupported-ico-format
     ] unless ;
 
 PRIVATE>
index 01d6c325ba70f162c358b1beddd33fac63be9f37..185791883f69df3dc17bdc1db32295952c82d225 100644 (file)
@@ -66,7 +66,7 @@ M: object file-spec>string ( file-listing spec -- string )
         { +file-date+ [ file-info>> modified>> listing-date ] }
         { +file-time+ [ file-info>> modified>> listing-time ] }
         { +file-datetime+ [ file-info>> modified>> timestamp>ymdhms ] }
-        [ throw-unknown-file-spec ]
+        [ unknown-file-spec ]
     } case ;
 
 : list-files-fast ( listing-tool -- array )
index 754a33c0ffee1ea49451cae4f0490a470a1d6abd..1eb40445fe167cefa731bcfb471074793d511726 100644 (file)
@@ -25,10 +25,10 @@ ERROR: not-a-vocab-root string ;
 : contains-separator? ( string -- ? ) [ path-separator? ] any? ;
 
 : ensure-vocab-exists ( string -- string )
-    dup loaded-vocab-names member? [ throw-no-vocab ] unless ;
+    dup loaded-vocab-names member? [ no-vocab ] unless ;
 
 : check-root ( string -- string )
-    dup vocab-root? [ throw-not-a-vocab-root ] unless ;
+    dup vocab-root? [ not-a-vocab-root ] unless ;
 
 : check-vocab-root/vocab ( vocab-root string -- vocab-root string )
     [ check-root ] [ check-vocab-name ] bi* ;
index f6349e091e896195c5559cf3b797e5e06eac05c6..b937b25b932357e5981928c395241b10680106b9 100644 (file)
@@ -15,7 +15,7 @@ M: bad-tr summary
 : tr-nth ( n mapping -- ch ) nth-unsafe 127 bitand ; inline
 
 : check-tr ( from to -- )
-    [ [ ascii? ] all? ] both? [ throw-bad-tr ] unless ;
+    [ [ ascii? ] all? ] both? [ bad-tr ] unless ;
 
 : compute-tr ( quot from to -- mapping )
     [ 128 iota ] 3dip zip
index 6e995a813dfede2d534ee3e9cea6f9576a6a6f0e..869f8bf5a1bb5a1390c6f67c7c02b210a217f90f 100644 (file)
@@ -33,8 +33,8 @@ MACRO: write-tuple ( class -- quot )
 
 : check-final ( class -- )
     {
-        { [ dup tuple-class? not ] [ throw-not-a-tuple ] }
-        { [ dup final-class? not ] [ throw-not-final ] }
+        { [ dup tuple-class? not ] [ not-a-tuple ] }
+        { [ dup final-class? not ] [ not-final ] }
         [ drop ]
     } cond ;
 
index 5b371ea0d61586e4fe760cec5410072e957c1d36..f86ad952a37ab62b02277a453930422422872000 100644 (file)
@@ -19,7 +19,7 @@ PRIVATE>
 
 :: (typed-get) ( name type getter: ( name -- value ) -- value )
     name getter call :> value
-    value type instance? [ name value type throw-variable-type-error ] unless
+    value type instance? [ name value type variable-type-error ] unless
     value type declare1 ; inline
 
 : typed-get ( name type -- value )
@@ -29,7 +29,7 @@ PRIVATE>
     [ get-global ] (typed-get) ; inline
 
 :: (typed-set) ( value name type setter: ( value name -- ) -- )
-    value type instance? [ name value type throw-variable-type-error ] unless
+    value type instance? [ name value type variable-type-error ] unless
     value name setter call ; inline
 
 : typed-set ( value name type -- )
index c8357136060ddc519e50968902cf5923b02d95ca..4a14e5d3b72e263ce92d5e7aebb424853d6f66aa 100644 (file)
@@ -69,14 +69,14 @@ PREDICATE: typed-word < word "typed-word" word-prop >boolean ;
 :: typed-inputs ( quot word types -- quot' )
     types unboxed-types :> unboxed-types
 
-    [ throw-input-mismatch-error ] word types make-unboxer
+    [ input-mismatch-error ] word types make-unboxer
     unboxed-types quot '[ _ declare @ ]
     compose ;
 
 ! typed outputs
 
 :: typed-outputs ( quot word types -- quot' )
-    [ throw-output-mismatch-error ] word types make-unboxer
+    [ output-mismatch-error ] word types make-unboxer
     quot prepose ;
 
 DEFER: make-boxer
@@ -143,7 +143,7 @@ MACRO: typed ( quot word effect -- quot' )
     dup {
         [ effect-in-types typed-stack-effect? ]
         [ effect-out-types typed-stack-effect? ]
-    } 1|| [ (typed-def) ] [ nip throw-no-types-specified ] if ;
+    } 1|| [ (typed-def) ] [ nip no-types-specified ] if ;
 
 M: typed-word subwords
     [ call-next-method ]
index b9204f585343f1a15121f62d2ad1d5af265d322a..38fb92e1f03c131e7ec7beaab51d9236ebf7ae1d 100644 (file)
@@ -30,7 +30,7 @@ M: label string<< ( string label -- )
         {
             { [ dup string-array? ] [ ] }
             { [ dup string? ] [ ?string-lines ] }
-            [ throw-not-a-string ]
+            [ not-a-string ]
         } cond
     ] dip [ text<< ] [ relayout ] bi ; inline
 
index 961f9bc7666f209db6dcaf4787fe42567d89a65a..f4b494fa3f0eb8271daff0eaa21538ac7a313585 100644 (file)
@@ -103,7 +103,7 @@ ERROR: no-world-found ;
 
 : find-gl-context ( gadget -- )
     find-world dup
-    [ set-gl-context ] [ throw-no-world-found ] if ;
+    [ set-gl-context ] [ no-world-found ] if ;
 
 : (request-focus) ( child world ? -- )
     pick parent>> pick eq? [
index 1f05c667f00b1522d74bd0b49ba4b46fd8a5f0cc..caca019cbcca3b7998967279db654ecab8ecd4a6 100644 (file)
@@ -52,7 +52,7 @@ TUPLE: pixel-format < disposable world handle ;
 : <pixel-format> ( world attributes -- pixel-format )
     2dup (make-pixel-format)
     [ pixel-format new-disposable swap >>handle swap >>world ]
-    [ throw-invalid-pixel-format-attributes ]
+    [ invalid-pixel-format-attributes ]
     ?if ;
 
 M: pixel-format dispose*
index 9138a2f5335c7424fa1ef5358ccdc6f4a5d975a9..e51ccc40c47632b829f2de706279cf803a162be2 100644 (file)
@@ -62,7 +62,7 @@ PRIVATE>
 ERROR: no-group string ;
 
 : ?group-id ( string -- id )
-    dup group-struct [ nip gr_gid>> ] [ throw-no-group ] if* ;
+    dup group-struct [ nip gr_gid>> ] [ no-group ] if* ;
 
 <PRIVATE
 
index b36f75eb223ba07879bbff833588b39459125d10..644a3ab3778d4a1a47f7a782f241e7713ab2bf46 100644 (file)
@@ -92,7 +92,7 @@ ERROR: unknown-cpuinfo-line string ;
         { "vendor_id" [ >>vendor-id ] }
         { "wp" [ "yes" = >>wp? ] }
         { "TLB size" [ >>tlb-size ] }
-        [ throw-unknown-cpuinfo-line ]
+        [ unknown-cpuinfo-line ]
     } case ;
 
 
index 76b06634792a2bf24d64df8cc0510aaf127275c1..4364fd40d0e618cc76bb15c14dd01aa7a311cccb 100644 (file)
@@ -32,7 +32,7 @@ MACRO:: unix-system-call ( quot -- quot )
         failed [
             n narray
             errno dup strerror
-            word throw-unix-system-call-error
+            word unix-system-call-error
         ] [
             n ndrop
             ret
@@ -51,7 +51,7 @@ MACRO:: unix-system-call-allow-eintr ( quot -- quot )
             errno EINTR = [
                 n narray
                 errno dup strerror
-                word throw-unix-system-call-error
+                word unix-system-call-error
             ] unless
         ] [
             n ndrop
index a3c4432d89a8e108e230a3abc6e83f219a71f92d..ee2e592c1f452b0da224939534178bdb2d14e8bd 100644 (file)
@@ -71,7 +71,7 @@ M: string user-passwd ( string -- passwd/f )
 ERROR: no-user string ;
 
 : ?user-id ( string -- id/f )
-    dup user-passwd [ nip uid>> ] [ throw-no-user ] if* ;
+    dup user-passwd [ nip uid>> ] [ no-user ] if* ;
 
 : real-user-id ( -- id )
     unix.ffi:getuid ; inline
@@ -132,6 +132,6 @@ M: string set-effective-user ( string -- )
 ERROR: no-such-user obj ;
 
 : user-home ( name/uid -- path )
-    dup user-passwd [ nip dir>> ] [ throw-no-such-user ] if* ;
+    dup user-passwd [ nip dir>> ] [ no-such-user ] if* ;
 
 os macosx? [ "unix.users.macosx" require ] when
index 000782743f2f6e15a983c7bdeeeccbbd55275070..bfb8e07e4f3b525bd7473dd054716a0492a66d65 100644 (file)
@@ -85,7 +85,7 @@ M: unrolled-list peek-front*
     drop ; inline
 
 M: unrolled-list pop-front*
-    dup front>> [ throw-empty-unrolled-list ] unless*
+    dup front>> [ empty-unrolled-list ] unless*
     over front-pos>> unroll-factor 1 - eq?
     [ pop-front/new ] [ pop-front/existing ] if ;
 
@@ -131,7 +131,7 @@ M: unrolled-list peek-back*
     drop ; inline
 
 M: unrolled-list pop-back*
-    dup back>> [ throw-empty-unrolled-list ] unless*
+    dup back>> [ empty-unrolled-list ] unless*
     over back-pos>> 1 eq?
     [ pop-back/new ] [ pop-back/existing ] if ;
 
index a1f26d43ebdd5345ad56cf260737d3c2eb5c142a..f149f499d96bd1f6efa58a9ac6765431dc8d7ef8 100644 (file)
@@ -30,7 +30,7 @@ ERROR: malformed-port ;
 : parse-host ( string -- host/f port/f )
     [
         ":" split1-last [ url-decode ]
-        [ dup [ string>number [ throw-malformed-port ] unless* ] when ] bi*
+        [ dup [ string>number [ malformed-port ] unless* ] when ] bi*
     ] [ f f ] if* ;
 
 GENERIC: >url ( obj -- url )
index 97e9b29cccfbb1f54dd626a45f3458d76ee60a13..79870b483f35561109d46d7061123456f1920f3e 100644 (file)
@@ -33,7 +33,7 @@ M: vlist ppush
 ERROR: empty-vlist-error ;
 
 M: vlist ppop
-    [ throw-empty-vlist-error ]
+    [ empty-vlist-error ]
     [ [ length>> 1 - ] [ vector>> ] bi vlist boa ] if-empty ;
 
 M: vlist clone
index 7172c461cb71219c22e59ad0ecdeecc1068d6601..96b8723e684d46a9a2c45da61da97a9124183fde 100644 (file)
@@ -34,7 +34,7 @@ M: vocab-prefix vocab-name name>> ;
 ERROR: vocab-root-required root ;
 
 : ensure-vocab-root ( root -- root )
-    dup vocab-roots get member? [ throw-vocab-root-required ] unless ;
+    dup vocab-roots get member? [ vocab-root-required ] unless ;
 
 : ensure-vocab-root/prefix ( root prefix -- root prefix )
     [ ensure-vocab-root ] [ check-vocab-name ] bi* ;
index 7246afa06a95a7f8e9446fb2d2f771e4ca26625f..a1ab1e06e608eacd4fec94690216e3ab46d3cc80 100644 (file)
@@ -8,7 +8,7 @@ vocabs.loader words ;
 IN: vocabs.metadata
 
 : check-vocab ( vocab -- vocab )
-    dup find-vocab-root [ throw-no-vocab ] unless ;
+    dup find-vocab-root [ no-vocab ] unless ;
 
 MEMO: vocab-file-contents ( vocab name -- seq )
     vocab-append-path dup
@@ -18,7 +18,7 @@ MEMO: vocab-file-contents ( vocab name -- seq )
     dupd vocab-append-path [
         swap [ ?delete-file ] [ swap utf8 set-file-lines ] if-empty
         \ vocab-file-contents reset-memoized
-    ] [ vocab-name throw-no-vocab ] ?if ;
+    ] [ vocab-name no-vocab ] ?if ;
 
 : vocab-windows-icon-path ( vocab -- string )
     vocab-dir "icon.ico" append-path ;
@@ -92,7 +92,7 @@ ERROR: bad-platform name ;
 
 : vocab-platforms ( vocab -- platforms )
     dup vocab-platforms-path vocab-file-contents
-    [ dup "system" lookup-word [ ] [ throw-bad-platform ] ?if ] map ;
+    [ dup "system" lookup-word [ ] [ bad-platform ] ?if ] map ;
 
 : set-vocab-platforms ( platforms vocab -- )
     [ [ name>> ] map ] dip
@@ -119,12 +119,12 @@ ERROR: bad-platform name ;
 TUPLE: unsupported-platform vocab requires ;
 
 : throw-unsupported-platform ( vocab requires -- )
-    unsupported-platform boa throw-continue ;
+    unsupported-platform boa throw-continue ;
 
 M: unsupported-platform summary
     drop "Current operating system not supported by this vocabulary" ;
 
 [
     dup vocab-platforms dup supported-platform?
-    [ 2drop ] [ [ vocab-name ] dip throw-unsupported-platform ] if
+    [ 2drop ] [ [ vocab-name ] dip unsupported-platform ] if
 ] check-vocab-hook set-global
index d69e02ab8d8888834dbe487791486b43b4030c34..15abd924d827b6cb82bda3d3d06572e0ddf745e3 100644 (file)
@@ -94,7 +94,7 @@ FUNCTION: void ReleaseStgMedium ( LPSTGMEDIUM pmedium )
 
 ERROR: null-com-release ;
 : com-release ( interface -- )
-    [ IUnknown::Release drop ] [ throw-null-com-release ] if* ; inline
+    [ IUnknown::Release drop ] [ null-com-release ] if* ; inline
 
 : with-com-interface ( interface quot -- )
     over [ com-release ] curry [ ] cleanup ; inline
index 85a1fbb00ab4e9972750288904ce9ca169963933..f6cf51d3d40fde2748c99b2c1b0f0e5c9295a66b 100755 (executable)
@@ -31,7 +31,7 @@ ERROR: no-com-interface interface ;
 : find-com-interface-definition ( name -- definition )
     [
         dup +com-interface-definitions+ get-global at*
-        [ nip ] [ drop throw-no-com-interface ] if
+        [ nip ] [ drop no-com-interface ] if
     ] [ f ] if* ;
 
 : save-com-interface-definition ( definition -- )
index 5398dd4706e49df2438f951c3ddbadd6ac198768..a43ce235ba8c3f8822e2f8f338aede71f9d9764c 100644 (file)
@@ -1628,7 +1628,7 @@ FUNCTION: GpStatus GdipTestControl ( GpTestControlEnum x, void* x )
 ERROR: gdi+-error status ;
 
 : check-gdi+-status ( GpStatus -- )
-    dup Ok = [ drop ] [ throw-gdi+-error ] if ;
+    dup Ok = [ drop ] [ gdi+-error ] if ;
 
 CONSTANT: standard-gdi+-startup-input
     S{ GdiplusStartupInput
index 422d83fbc19282b2902bdf8edd0b133ead2d5e89..e3f2da7b189fb18d9f6c4f39f146f3b066eff66f 100644 (file)
@@ -141,7 +141,7 @@ ERROR: unknown-sockaddr-length sockaddr length ;
     dup iSockaddrLength>> {
         { 16 [ lpSockaddr>> sockaddr-in memory>struct ] }
         { 28 [ lpSockaddr>> sockaddr-in6 memory>struct ] }
-        [ throw-unknown-sockaddr-length ]
+        [ unknown-sockaddr-length ]
     } case ;
 
 TYPEDEF: SOCKET_ADDRESS* PSOCKET_ADDRESS
index 65d64b85fb24958cb0563c0d02a83473c87b3384..968b52fbe49730285c7962f7f994edbe6de6d389 100644 (file)
@@ -19,7 +19,7 @@ CONSTANT: registry-value-max-length 16384
             drop
         ] [
             [ key subkey mode ] dip n>win32-error-string
-            throw-open-key-failed
+            open-key-failed
         ] if
     ] keep HKEY deref ;
 
@@ -36,7 +36,7 @@ CONSTANT: registry-value-max-length 16384
             hKey lpSubKey 0 lpClass dwOptions samDesired
             lpSecurityAttributes
         ] dip n>win32-error-string
-        throw-create-key-failed
+        create-key-failed
     ] unless ;
 
 : create-key ( hkey lsubkey -- hkey )
index fa87ad900145bec0dfa24fac22a478304521e452..db6a18e69b27c44b93272cecf217635835ada92e 100644 (file)
@@ -20,7 +20,7 @@ ALIAS: mciSendString mciSendStringW
 ERROR: mci-error n ;
 
 : check-mci-error ( n -- )
-    [ throw-mci-error ] unless-zero ;
+    [ mci-error ] unless-zero ;
 
 : open-command ( path -- )
     "open \"%s\" type mpegvideo alias MediaFile" sprintf f 0 f
index 59a26512635c77a988fd99aeb1576815faebeb17..601316950900848c821b35658b3d3aa1a629fc6b 100644 (file)
@@ -446,17 +446,17 @@ ERROR: winsock-exception n string ;
 : winsock-error ( -- )
     maybe-winsock-exception [ throw ] when* ;
 
-: (throw-winsock-error) ( n -- * )
-    [ ] [ n>win32-error-string ] bi throw-winsock-exception ;
+: (winsock-error) ( n -- * )
+    [ ] [ n>win32-error-string ] bi winsock-exception ;
 
 : throw-winsock-error ( -- * )
-    WSAGetLastError (throw-winsock-error) ;
+    WSAGetLastError (winsock-error) ;
 
 : winsock-error=0/f ( n/f -- )
-    { 0 f } member? [ throw-winsock-error ] when ;
+    { 0 f } member? [ winsock-error ] when ;
 
 : winsock-error!=0/f ( n/f -- )
-    { 0 f } member? [ throw-winsock-error ] unless ;
+    { 0 f } member? [ winsock-error ] unless ;
 
 ! WSAStartup and WSACleanup return the error code directly
 : winsock-return-check ( n/f -- )
index 86a67afd17de87295b00c0c23e3d02f919e47433..36bc349e11fe5b6902d6cbb6caf19fe032732f16 100644 (file)
@@ -125,7 +125,7 @@ TAG: boolean xml>item
     children>string {
         { "1" [ t ] }
         { "0" [ f ] }
-        [ "Bad boolean" throw-server-error ]
+        [ "Bad boolean" server-error ]
     } case ;
 
 : unstruct-member ( tag -- )
@@ -167,7 +167,7 @@ TAG: array xml>item
             dup first-child-tag main>> "fault" =
             [ parse-fault <rpc-fault> ]
             [ parse-rpc-response <rpc-response> ] if
-        ] [ "Bad main tag name" throw-server-error ] if
+        ] [ "Bad main tag name" server-error ] if
     ] if ;
 
 <PRIVATE
index d0c6f005a80af7286e4f4afdba4155d46eba614c..d43c127e1f056dc8dbd2f7aef787c40c00a31338 100644 (file)
@@ -16,7 +16,7 @@ M: no-tag summary
     drop "The tag-dispatching word has no method for the given tag name" ;
 
 : compile-tags ( word xtable -- quot )
-    >alist swap '[ _ throw-no-tag ] suffix '[ dup main>> _ case ] ;
+    >alist swap '[ _ no-tag ] suffix '[ dup main>> _ case ] ;
 
 : define-tags ( word effect -- )
     [ dup dup "xtable" word-prop compile-tags ] dip define-declared ;
index e02bc08a43380ebb98f2e4e93c9d774908aa759f..b60331d8cb3b6ea6d4a01258cd0bfe60da2a1d5e 100755 (executable)
@@ -86,22 +86,22 @@ UNION: abi stdcall thiscall fastcall cdecl mingw ;
 ERROR: alien-callback-error ;
 
 : alien-callback ( return parameters abi quot -- alien )
-    throw-alien-callback-error ;
+    alien-callback-error ;
 
 ERROR: alien-indirect-error ;
 
 : alien-indirect ( args... funcptr return parameters abi -- return... )
-    throw-alien-indirect-error ;
+    alien-indirect-error ;
 
 ERROR: alien-invoke-error library symbol ;
 
 : alien-invoke ( args... return library function parameters -- return... )
-    2over throw-alien-invoke-error ;
+    2over alien-invoke-error ;
 
 ERROR: alien-assembly-error code ;
 
 : alien-assembly ( args... return parameters abi quot -- return... )
-    dup throw-alien-assembly-error ;
+    dup alien-assembly-error ;
 
 <PRIVATE
 
index 7e38ac31afaca6cfc76e616727771fa30eb61d6a..12017d64d84ffd7a4cab9702c8b3ef637d0c5c48 100644 (file)
@@ -22,7 +22,7 @@ M: f alien>string
 ERROR: invalid-c-string string ;
 
 : check-string ( string -- )
-    0 over member-eq? [ throw-invalid-c-string ] [ drop ] if ;
+    0 over member-eq? [ invalid-c-string ] [ drop ] if ;
 
 GENERIC# string>alien 1 ( string encoding -- byte-array )
 
index c4b9cfc7fe21b94239e86c8896ce586de988013a..ad386c176e0b20d3c3c2541a2ce24dde54184128 100644 (file)
@@ -17,12 +17,12 @@ ERROR: not-classoids sequence ;
 
 : check-classoids ( members -- members )
     dup [ classoid? ] all?
-    [ [ classoid? ] reject throw-not-classoids ] unless ;
+    [ [ classoid? ] reject not-classoids ] unless ;
 
 ERROR: not-a-classoid object ;
 
 : check-classoid ( object -- object )
-    dup classoid? [ throw-not-a-classoid ] unless ;
+    dup classoid? [ not-a-classoid ] unless ;
 
 : <anonymous-union> ( members -- classoid )
     check-classoids
@@ -47,7 +47,7 @@ TUPLE: anonymous-complement { class read-only } ;
 INSTANCE: anonymous-complement classoid
 
 : <anonymous-complement> ( object -- classoid )
-    dup classoid? [ 1array throw-not-classoids ] unless
+    dup classoid? [ 1array not-classoids ] unless
     anonymous-complement boa ;
 
 M: anonymous-complement rank-class drop 3 ;
@@ -283,7 +283,7 @@ ERROR: topological-sort-failed ;
 
 : largest-class ( seq -- n elt )
     dup [ [ class< ] with any? not ] curry find-last
-    [ throw-topological-sort-failed ] unless* ;
+    [ topological-sort-failed ] unless* ;
 
 : sort-classes ( seq -- newseq )
     [ class-name ] sort-with >vector
index 9a2469f70ba58607a14d2c83b00eaaad7693f47c..72178f62f2728bf4072c956e81a41e692098ea25 100644 (file)
@@ -12,7 +12,7 @@ PREDICATE: builtin-class < class
 ERROR: not-a-builtin object ;
 
 : check-builtin ( class -- )
-    dup builtin-class? [ drop ] [ throw-not-a-builtin ] if ;
+    dup builtin-class? [ drop ] [ not-a-builtin ] if ;
 
 : class>type ( class -- n ) "type" word-prop ; foldable
 
index 9e39b40923660d0d36c51ba516b46455cea9a0e3..8c65a5d10b7dd667327aa2a7a093b37fff123a97 100644 (file)
@@ -225,7 +225,7 @@ GENERIC: update-methods ( class seq -- )
     [ nip [ update-class ] each ] [ update-methods ] 2bi ;
 
 : check-inheritance ( subclass superclass -- )
-    2dup superclass-of? [ throw-bad-inheritance ] [ 2drop ] if ;
+    2dup superclass-of? [ bad-inheritance ] [ 2drop ] if ;
 
 : define-class ( word superclass members participants metaclass -- )
     [ 2dup check-inheritance ] 3dip
index 80c881d174a4d44c0196bd4f77f6c280353d61b2..a74febc42f9194c323675df848bd6edf5759c56e 100644 (file)
@@ -8,8 +8,8 @@ IN: classes.error.tests
 ! Test error classes
 ERROR: error-class-test a b c ;
 
-{ "( a b c -- * )" } [ \ throw-error-class-test stack-effect effect>string ] unit-test
-{ f } [ \ throw-error-class-test "inline" word-prop ] unit-test
+{ "( a b c -- * )" } [ \ error-class-test stack-effect effect>string ] unit-test
+{ f } [ \ error-class-test "inline" word-prop ] unit-test
 
 [ "IN: classes.error.tests ERROR: error-x ; : error-x 3 ;" eval( -- ) ]
 [ error>> error>> redefine-error? ] must-fail-with
@@ -37,4 +37,4 @@ DEFER: error-y
 ERROR: base-error x y ;
 ERROR: derived-error < base-error z ;
 
-{ ( x y z -- * ) } [ \ throw-derived-error stack-effect ] unit-test
+{ ( x y z -- * ) } [ \ derived-error stack-effect ] unit-test
index ca9d0bab65a94f1612f7cd8ca9f2524769dd451a..2c050a4c9342f54eba013f6c7047e57ceca9df5d 100644 (file)
@@ -22,11 +22,4 @@ M: error-class reset-class
             [ all-slots thrower-effect ]
             tri define-declared
         ]
-        [
-            2drop
-            [ name>> "throw-" prepend create-word-in [ reset-generic ] keep ]
-            [ [ boa throw ] curry ]
-            [ all-slots thrower-effect ]
-            tri define-declared
-        ]
     } 3cleave ;
index f73c1059a87c6b069aeb00a7a3a01c714830600d..bacb34a385661ad01b29ebda23037d5683bb1976 100644 (file)
@@ -22,7 +22,7 @@ ERROR: check-mixin-class-error class ;
 
 : check-mixin-class ( mixin -- mixin )
     dup mixin-class? [
-        throw-check-mixin-class-error
+        check-mixin-class-error
     ] unless ;
 
 <PRIVATE
index 7d02a5c0631804518d6374f483998e2e0261bf5c..202214770b7cdfeff4c00380fddd589fac0b1ea3 100644 (file)
@@ -26,7 +26,7 @@ ERROR: duplicate-slot-names names ;
 
 : check-duplicate-slots ( slots -- )
     slot-names duplicates
-    [ throw-duplicate-slot-names ] unless-empty ;
+    [ duplicate-slot-names ] unless-empty ;
 
 ERROR: invalid-slot-name name ;
 
@@ -40,7 +40,7 @@ ERROR: invalid-slot-name name ;
     !
     ! : ...
     {
-        { [ dup { ":" "(" "<" "\"" "!" } member? ] [ throw-invalid-slot-name ] }
+        { [ dup { ":" "(" "<" "\"" "!" } member? ] [ invalid-slot-name ] }
         { [ 2dup = ] [ drop f ] }
         [ dup "{" = [ drop parse-long-slot-name ] when , t ]
     } cond nip ;
@@ -72,12 +72,12 @@ ERROR: bad-literal-tuple ;
 ERROR: bad-slot-name class slot ;
 
 : check-slot-name ( class slots name -- name )
-    2dup swap slot-named [ 2nip ] [ nip throw-bad-slot-name ] if ;
+    2dup swap slot-named [ 2nip ] [ nip bad-slot-name ] if ;
 
 : parse-slot-value ( class slots -- )
     scan-token check-slot-name scan-object 2array , scan-token {
         { "}" [ ] }
-        [ throw-bad-literal-tuple ]
+        [ bad-literal-tuple ]
     } case ;
 
 : (parse-slot-values) ( class slots -- )
@@ -85,7 +85,7 @@ ERROR: bad-slot-name class slot ;
     scan-token {
         { "{" [ (parse-slot-values) ] }
         { "}" [ 2drop ] }
-        [ 2nip throw-bad-literal-tuple ]
+        [ 2nip bad-literal-tuple ]
     } case ;
 
 : parse-slot-values ( class slots -- values )
@@ -97,7 +97,7 @@ M: tuple-class boa>object
     swap slots>tuple ;
 
 : check-slot-exists ( class initials slot-spec/f index/f name -- class initials slot-spec index )
-    over [ drop ] [ nip nip nip throw-bad-slot-name ] if ;
+    over [ drop ] [ nip nip nip bad-slot-name ] if ;
 
 : slot-named-checked ( class initials name slots -- class initials slot-spec )
     over [ slot-named* ] dip check-slot-exists drop ;
@@ -112,7 +112,7 @@ M: tuple-class boa>object
         { "f" [ drop \ } parse-until boa>object ] }
         { "{" [ 2dup parse-slot-values assoc>object ] }
         { "}" [ drop new ] }
-        [ throw-bad-literal-tuple ]
+        [ bad-literal-tuple ]
     } case ;
 
 : parse-tuple-literal ( -- tuple )
index 6c1bcf75275f7f9b90294358fba1de2a4357feb3..37e93e0056151a287547bf738c7cf4f74c36434a 100644 (file)
@@ -24,7 +24,7 @@ ERROR: no-slot name tuple ;
 
 : offset-of-slot ( name tuple -- n )
     2dup class-of all-slots slot-named
-    [ 2nip offset>> ] [ throw-no-slot ] if* ;
+    [ 2nip offset>> ] [ no-slot ] if* ;
 
 : get-slot-named ( name tuple -- value )
     [ nip ] [ offset-of-slot ] 2bi slot ;
@@ -59,7 +59,7 @@ M: tuple class-of layout-of 2 slot { word } declare ; inline
     [ [ layout-of ] [ class-of tuple-layout ] bi eq? ] [ drop t ] if ;
 
 : check-tuple ( object -- tuple )
-    dup tuple? [ throw-not-a-tuple ] unless ; inline
+    dup tuple? [ not-a-tuple ] unless ; inline
 
 : prepare-tuple-slots ( tuple -- n tuple )
     check-tuple [ tuple-size iota ] keep ;
@@ -324,7 +324,7 @@ M: tuple-class (define-tuple-class)
 ERROR: not-a-tuple-class object ;
 
 : check-tuple-class ( class -- class )
-    dup tuple-class? [ throw-not-a-tuple-class ] unless ; inline
+    dup tuple-class? [ not-a-tuple-class ] unless ; inline
 
 : define-boa-word ( word class -- )
     check-tuple-class [ [ boa ] curry ] [ boa-effect ] bi
index b375b20b4ca0137cacde7ac2d4589ebbee56314e..0e4cf5742a44ea3773c53632c9ac42e2aa2138c0 100644 (file)
@@ -68,7 +68,7 @@ M: object classes-contained-by
         dup dup [ classes-contained-by ] map concat sift append
         2dup set= [ 2drop f ] [ nip ] if
     ] follow concat
-    member-eq? [ throw-cannot-reference-self ] when ;
+    member-eq? [ cannot-reference-self ] when ;
 
 PRIVATE>
 
index 9d43d4c7e4dfef215dbbb13ac1c4597923596fcb..f348155d3698760797698f8c7103192ade30f759 100644 (file)
@@ -38,7 +38,7 @@ SLOT: terminated?
             check-datastack
         ] if
     ] 2dip rot
-    [ 2drop ] [ throw-wrong-values ] if ;
+    [ 2drop ] [ wrong-values ] if ;
 
 : execute-effect ( word effect -- )
     [ [ execute ] curry ] dip call-effect ;
index 78911cea79e3dd8ee2cdea8e28938668a874758c..552143b7ff3e1e23944c0bd0d19957bf1aba81d7 100644 (file)
@@ -52,7 +52,7 @@ C: <continuation> continuation
 ERROR: not-a-continuation object ;
 
 : >continuation< ( continuation -- data call retain name catch )
-    dup continuation? [ throw-not-a-continuation ] unless
+    dup continuation? [ not-a-continuation ] unless
     { [ data>> ] [ call>> ] [ retain>> ] [ name>> ] [ catch>> ] } cleave ; inline
 
 PRIVATE>
index 4fdae1da75649c4108eb12d8764f5e6e700804a0..350268630ca8ac57a960a5a452050772837440f8 100644 (file)
@@ -8,7 +8,7 @@ MIXIN: definition-mixin
 ERROR: no-compilation-unit definition ;
 
 : add-to-unit ( key set -- )
-    [ adjoin ] [ throw-no-compilation-unit ] if* ;
+    [ adjoin ] [ no-compilation-unit ] if* ;
 
 SYMBOL: changed-definitions
 
index fc79a193df5af33bdf2f2854d76afc7d5c1d3400..3e4eaeeec992c44ea31b19221d1d0d221e25e633 100755 (executable)
@@ -19,7 +19,7 @@ SLOT: continuation
     disposables get adjoin ;
 
 : unregister-disposable ( obj -- )
-    disposables get 2dup in? [ delete ] [ drop throw-already-unregistered ] if ;
+    disposables get 2dup in? [ delete ] [ drop already-unregistered ] if ;
 
 PRIVATE>
 
index 2e9d6683219d32608ef5e5f662c36d258c1261da..c1288052b1c25ac114fe0a7b5067a15d7f646ffc 100644 (file)
@@ -132,4 +132,4 @@ ERROR: bad-stack-effect word expected got ;
 
 : check-stack-effect ( word effect -- )
     over stack-effect 2dup effect=
-    [ 3drop ] [ throw-bad-stack-effect ] if ;
+    [ 3drop ] [ bad-stack-effect ] if ;
index aed4e2f3ea0e1ff445a29a61758a578034ad50af..2a9246c1b234ebad14962bfb7f2644b91604fa94 100644 (file)
@@ -21,8 +21,8 @@ SYMBOL: effect-var
 
 : parse-effect-var ( first? var name -- var )
     nip
-    [ ":" ?tail [ throw-row-variable-can't-have-type ] when ] curry
-    [ throw-invalid-row-variable ] if ;
+    [ ":" ?tail [ row-variable-can't-have-type ] when ] curry
+    [ invalid-row-variable ] if ;
 
 : parse-effect-value ( token -- value )
     ":" ?tail [ scan-object 2array ] when ;
@@ -31,8 +31,8 @@ PRIVATE>
 : parse-effect-token ( first? var end -- var more? )
     scan-token {
         { [ end-token? ] [ drop nip f ] }
-        { [ effect-opener? ] [ throw-bad-effect ] }
-        { [ effect-closer? ] [ throw-stack-effect-omits-dashes ] }
+        { [ effect-opener? ] [ bad-effect ] }
+        { [ effect-closer? ] [ stack-effect-omits-dashes ] }
         { [ row-variable? ] [ parse-effect-var t ] }
         [ [ drop ] 2dip parse-effect-value , t ]
     } cond ;
index cd773a89f1167467db9749aa715ea43eff8fca53..c861f7c54bc894dd9c3c90fd1711f5ceae24f75d 100644 (file)
@@ -30,7 +30,7 @@ ERROR: method-lookup-failed class generic ;
     "methods" word-prop at ;
 
 : lookup-method ( class generic -- method )
-    2dup ?lookup-method [ 2nip ] [ throw-method-lookup-failed ] if* ;
+    2dup ?lookup-method [ 2nip ] [ method-lookup-failed ] if* ;
 
 <PRIVATE
 
index 6b320bbf624d59f9d1297efb5398e589427f1eb0..96a3edf9c62c51dc34079cbfc3a5689a46ed0cdb 100644 (file)
@@ -45,7 +45,7 @@ PRIVATE>
 ERROR: no-math-method left right generic ;
 
 : default-math-method ( generic -- quot )
-    [ throw-no-math-method ] curry [ ] like ;
+    [ no-math-method ] curry [ ] like ;
 
 <PRIVATE
 
index 61c9136f178b8f9e38f4855f3ccd9341c03859db..77533de629cba040d88451aa701c3e885672da32 100644 (file)
@@ -38,7 +38,7 @@ SYMBOL: current-method
 ERROR: bad-method-effect ;
 
 : check-method-effect ( effect -- )
-    last-word generic-effect method-effect= [ throw-bad-method-effect ] unless ;
+    last-word generic-effect method-effect= [ bad-method-effect ] unless ;
 
 : ?execute-parsing ( word/number -- seq )
     dup parsing-word?
index cb0d7b547d47b214ccfd3eb001d4f1acd65e2286..7978434c92b5ad7b83ee8c19b7e486be3a0503c3 100644 (file)
@@ -23,7 +23,7 @@ TUPLE: single-combination ;
 PREDICATE: single-generic < generic
     "combination" word-prop single-combination? ;
 
-M: single-generic make-inline throw-cannot-be-inline ;
+M: single-generic make-inline cannot-be-inline ;
 
 GENERIC: dispatch# ( word -- n )
 
@@ -45,7 +45,7 @@ M: single-combination next-method-quot* ( class generic combination -- quot )
             [
                 pick predicate-def %
                 1quotation ,
-                [ throw-inconsistent-next-method ] 2curry ,
+                [ inconsistent-next-method ] 2curry ,
                 \ if ,
             ] [ ] make picker prepend
         ] [ 3drop f ] if
@@ -59,7 +59,7 @@ M: single-combination next-method-quot* ( class generic combination -- quot )
     bi or ;
 
 M: single-combination make-default-method
-    [ [ picker ] dip [ throw-no-method ] curry append ] with-combination ;
+    [ [ picker ] dip [ no-method ] curry append ] with-combination ;
 
 ! ! ! Build an engine ! ! !
 
@@ -216,7 +216,7 @@ ERROR: unreachable ;
 
 : prune-redundant-predicates ( assoc -- default assoc' )
     {
-        { [ dup empty? ] [ drop [ throw-unreachable ] { } ] }
+        { [ dup empty? ] [ drop [ unreachable ] { } ] }
         { [ dup length 1 = ] [ first second { } ] }
         { [ dup keep-going? ] [ rest-slice prune-redundant-predicates ] }
         [ [ first second ] [ rest-slice ] bi ]
index 6efa706c4929e64c8d074a2768b3f2d03a16ac50..0f6ad5919cd749b9a648a84910b2d23162e63dc8 100644 (file)
@@ -194,7 +194,7 @@ M: hashtable assoc-like
 ERROR: malformed-hashtable-pair seq pair ;
 
 : check-hashtable ( seq -- seq )
-    dup [ dup length 2 = [ drop ] [ throw-malformed-hashtable-pair ] if ] each ;
+    dup [ dup length 2 = [ drop ] [ malformed-hashtable-pair ] if ] each ;
 
 : parse-hashtable ( seq -- hashtable )
     check-hashtable H{ } assoc-clone-like ;
index 7b7e3e1a3ec8d57417fbfb4dfc1ff16fcacb36b3..2c7a475217c1b2c9d7e15b4b30e1cc11a653cf34 100644 (file)
@@ -8,7 +8,7 @@ SINGLETON: ascii
 
 M: ascii encode-char
     drop
-    over 127 <= [ stream-write1 ] [ throw-encode-error ] if ; inline
+    over 127 <= [ stream-write1 ] [ encode-error ] if ; inline
 
 <PRIVATE
 
@@ -16,7 +16,7 @@ GENERIC: ascii> ( string -- byte-array )
 
 M: string ascii>
     dup aux>>
-    [ [ dup 127 <= [ throw-encode-error ] unless ] B{ } map-as ]
+    [ [ dup 127 <= [ encode-error ] unless ] B{ } map-as ]
     [ string>byte-array-fast ] if ; inline
 
 PRIVATE>
index 13406a23f16ad87567ff8cc979e20fb62b591c43..0660ddfd774784118e80c769c5e357eb9e6c1fb7 100644 (file)
@@ -139,7 +139,7 @@ CONSTANT: bom-be B{ 0xfe 0xff }
 
 : bom>le/be ( bom -- le/be )
     dup bom-le sequence= [ drop utf16le ] [
-        bom-be sequence= [ utf16be ] [ throw-missing-bom ] if
+        bom-be sequence= [ utf16be ] [ missing-bom ] if
     ] if ;
 
 M: utf16 <decoder> ( stream utf16 -- decoder )
index d96bcf6d20ad2851d1896581bc297cf53efb5cb4..2d382e49d18342fb76cd6b7ccdba2d0beef4cd6c 100644 (file)
@@ -35,7 +35,7 @@ ERROR: no-parent-directory path ;
             drop "." swap
         ] if
         { "" "." ".." } member? [
-            throw-no-parent-directory
+            no-parent-directory
         ] when
     ] unless ;
 
@@ -57,7 +57,7 @@ ERROR: no-parent-directory path ;
         { [ dup head.? ] [
             rest trim-head-separators append-path-empty
         ] }
-        { [ dup head..? ] [ drop throw-no-parent-directory ] }
+        { [ dup head..? ] [ drop no-parent-directory ] }
         [ nip ]
     } cond ;
 
index 09d2f69bad7f3a0b5b4cdc77c93619a11e532c25..49a227b76f887c166d3b9e99ce4dde0a00e846a3 100644 (file)
@@ -304,7 +304,7 @@ GENERIC: throw ( error -- * )
 
 ERROR: assert got expect ;
 
-: assert= ( a b -- ) 2dup = [ 2drop ] [ throw-assert ] if ;
+: assert= ( a b -- ) 2dup = [ 2drop ] [ assert ] if ;
 
 <PRIVATE
 
index 1676b8acf7d0491d2d6c544e359f44b799211f11..55ae061633b9e3d3eaf0da6dc5aa20d078ebe01c 100644 (file)
@@ -18,7 +18,7 @@ TUPLE: lexer-parsing-word word line line-text column ;
 ERROR: not-a-lexer object ;
 
 : check-lexer ( lexer -- lexer )
-    dup lexer? [ throw-not-a-lexer ] unless ; inline
+    dup lexer? [ not-a-lexer ] unless ; inline
 
 : next-line ( lexer -- )
     check-lexer
index b0dd45885bbb7d8d09606fdffe48453fe8146566..ecf3e43001606fc82569469bf1893bc746f3faa4 100644 (file)
@@ -134,7 +134,7 @@ PRIVATE>
 ERROR: log2-expects-positive x ;
 
 : log2 ( x -- n )
-    dup 0 <= [ throw-log2-expects-positive ] [ (log2) ] if ; inline
+    dup 0 <= [ log2-expects-positive ] [ (log2) ] if ; inline
 
 : zero? ( x -- ? ) 0 number= ; inline
 : 2/ ( x -- y ) -1 shift ; inline
index 4cc773e0eea42c3510deac5ece1a469738efb1ce..de8f60ce1d71541c55730b807a2b84d2297bfffc 100644 (file)
@@ -454,7 +454,7 @@ M: fixnum (positive>dec)
     1 over (count-digits) <sbuf> (fixnum>dec) "" like reverse! nip ; inline
 
 : (positive>base) ( num radix -- str )
-    dup 1 <= [ throw-invalid-radix ] when
+    dup 1 <= [ invalid-radix ] when
     [ dup 0 > ] swap [ /mod >digit ] curry "" produce-as nip
     reverse! ; inline
 
@@ -534,7 +534,7 @@ M: ratio >base
         { 16 [ [ float>hex-value ] swap (bin-float>base) ] }
         { 8  [ [ float>oct-value ] swap (bin-float>base) ] }
         { 2  [ [ float>bin-value ] swap (bin-float>base) ] }
-        [ throw-invalid-radix ]
+        [ invalid-radix ]
     } case ;
 
 : format-string ( format -- format )
index 71d0aebcc995ca2b81ef344fabc8981a6d4a607f..167d335b9bac0f2635e936c70231edff29756739 100644 (file)
@@ -26,7 +26,7 @@ ERROR: division-by-zero x ;
 
 M: integer /
     [
-        throw-division-by-zero
+        division-by-zero
     ] [
         dup 0 < [ [ neg ] bi@ ] when
         2dup fast-gcd [ /i ] curry bi@ fraction>
@@ -34,7 +34,7 @@ M: integer /
 
 M: integer recip
     1 swap [
-        throw-division-by-zero
+        division-by-zero
     ] [
         dup 0 < [ [ neg ] bi@ ] when fraction>
     ] if-zero ;
index 990d00d9f2c515e1e67659a23a5f657bec235761..91dea25487cef3ca6e6f88bce90695987cb3684d 100644 (file)
@@ -53,7 +53,7 @@ SYMBOL: auto-use?
 ERROR: number-expected ;
 
 : parse-number ( string -- number )
-    string>number [ throw-number-expected ] unless* ;
+    string>number [ number-expected ] unless* ;
 
 : parse-datum ( string -- word/number )
     dup search [ ] [
@@ -77,7 +77,7 @@ ERROR: invalid-word-name string ;
 : scan-word-name ( -- string )
     scan-token
     dup "\"" = [ t ] [ dup string>number ] if
-    [ throw-invalid-word-name ] when ;
+    [ invalid-word-name ] when ;
 
 : scan-new ( -- word )
     scan-word-name create-word-in ;
@@ -93,7 +93,7 @@ ERROR: staging-violation word ;
     pop-parsing-word ; inline
 
 : execute-parsing ( accum word -- accum )
-    dup changed-definitions get in? [ throw-staging-violation ] when
+    dup changed-definitions get in? [ staging-violation ] when
     (execute-parsing) ;
 
 : scan-object ( -- object )
index d5d6ddc3d005ed2e349d08ddd4cb4e2fcf09e380..a2ab3ee8e2dc90699641b90820af5d0bea1f771c 100644 (file)
@@ -57,13 +57,13 @@ M: integer bounds-check? ( n seq -- ? )
     dupd length < [ 0 >= ] [ drop f ] if ; inline
 
 : bounds-check ( n seq -- n seq )
-    2dup bounds-check? [ throw-bounds-error ] unless ; inline
+    2dup bounds-check? [ bounds-error ] unless ; inline
 
 MIXIN: immutable-sequence
 
 ERROR: immutable element index sequence ;
 
-M: immutable-sequence set-nth throw-immutable ;
+M: immutable-sequence set-nth immutable ;
 
 INSTANCE: immutable-sequence sequence
 
@@ -304,7 +304,7 @@ C: <copy> copy-state
     3dup nip new-sequence 0 swap <copy> ; inline
 
 : bounds-check-head ( n seq -- n seq )
-    over 0 < [ throw-bounds-error ] when ; inline
+    over 0 < [ bounds-error ] when ; inline
 
 : check-copy ( src n dst -- src n dst )
     3dup bounds-check-head
@@ -742,7 +742,7 @@ PRIVATE>
 
 : last ( seq -- elt )
     [ length 1 - ] keep
-    over 0 < [ throw-bounds-error ] [ nth-unsafe ] if ; inline
+    over 0 < [ bounds-error ] [ nth-unsafe ] if ; inline
 
 <PRIVATE
 
@@ -753,7 +753,7 @@ PRIVATE>
 
 : set-last ( elt seq -- )
     [ length 1 - ] keep
-    over 0 < [ throw-bounds-error ] [ set-nth-unsafe ] if ; inline
+    over 0 < [ bounds-error ] [ set-nth-unsafe ] if ; inline
 
 : pop* ( seq -- ) [ length 1 - ] [ shorten ] bi ;
 
@@ -814,7 +814,7 @@ PRIVATE>
 : pop ( seq -- elt )
     [ length 1 - ] keep over 0 >=
     [ [ nth-unsafe ] [ shorten ] 2bi ]
-    [ throw-bounds-error ] if ;
+    [ bounds-error ] if ;
 
 : exchange ( m n seq -- )
     [ nip bounds-check 2drop ]
index 22d3e1068e3c5c1aa79d009280834c9c55c155bf..e3f6ea995bea0d863bc354005b571b4c1440387e 100644 (file)
@@ -83,7 +83,7 @@ M: object instance-check-quot
     [
         \ dup ,
         [ predicate-def % ]
-        [ [ throw-bad-slot-value ] curry , ] bi
+        [ [ bad-slot-value ] curry , ] bi
         \ unless ,
     ] [ ] make ;
 
@@ -241,7 +241,7 @@ ERROR: bad-slot-attribute key ;
         unclip {
             { initial: [ [ first >>initial ] [ rest ] bi ] }
             { read-only [ [ t >>read-only ] dip ] }
-            [ throw-bad-slot-attribute ]
+            [ bad-slot-attribute ]
         } case
     ] unless ;
 
index dbdd042778fec91bf3175a973ed5e7e8dc3a95a5..2575ea686ff495b9c7d4f4c80aff9c9e83f960ff 100644 (file)
@@ -33,7 +33,7 @@ main ;
 ERROR: invalid-source-file-path path ;
 
 : path>source-file ( path -- source-file )
-    dup string? [ throw-invalid-source-file-path ] unless
+    dup string? [ invalid-source-file-path ] unless
     source-files get [ <source-file> ] cache ;
 
 : reset-checksums ( -- )
index 86f6030b05760ba978388235c5140e6fdf10ed0f..97ee6836f00e2e2a776e7d2fd365a2f96632c00f 100644 (file)
@@ -22,7 +22,7 @@ ERROR: bad-escape char ;
         { CHAR: 0  CHAR: \0 }
         { CHAR: \\ CHAR: \\ }
         { CHAR: \" CHAR: \" }
-    } ?at [ throw-bad-escape ] unless ;
+    } ?at [ bad-escape ] unless ;
 
 SYMBOL: name>char-hook
 
@@ -116,7 +116,7 @@ ERROR: escaped-char-expected ;
     dup still-parsing-line? [
         [ current-char ] [ advance-char ] bi
     ] [
-        throw-escaped-char-expected
+        escaped-char-expected
     ] if ;
 
 : lexer-head? ( lexer string -- ? )
index 9b9b47f542ad6d2a2b4e8dc08f45c49957683f27..97d3cdcdac2a104bfe9b4114deddff72c6f45aa1 100644 (file)
@@ -823,7 +823,7 @@ HELP: SLOT:
 HELP: ERROR:
 { $syntax "ERROR: class slots... ;" }
 { $values { "class" "a new tuple class to define" } { "slots" "a list of slot names" } }
-{ $description "Defines a new tuple class and a word " { $snippet "throw-classname" } " that throws a new instance of the error." }
+{ $description "Defines a new tuple class and a word " { $snippet "classname" } " that throws a new instance of the error." }
 { $notes
     "The following two snippets are equivalent:"
     { $code
index 8a993646757793aea23b084bc415775eebcffaef..55f8561a4768d3b8f85c32ff15114070e5e13a8e 100644 (file)
@@ -31,7 +31,7 @@ IN: bootstrap.syntax
 
 : define-core-syntax ( name quot -- )
     [
-        dup "syntax" lookup-word [ ] [ throw-no-word-error ] ?if
+        dup "syntax" lookup-word [ ] [ no-word-error ] ?if
         mark-top-level-syntax
     ] dip
     define-syntax ;
@@ -261,7 +261,7 @@ IN: bootstrap.syntax
             literalize suffix!
             \ (call-next-method) suffix!
         ] [
-            throw-not-in-a-method-error
+            not-in-a-method-error
         ] if*
     ] define-core-syntax
 
index e17f85461b9c75763b77c3820e7f65061a47c313..1088baf9a55eae724e8d7d5f313f9b4c98003111 100755 (executable)
@@ -93,7 +93,7 @@ HELP: find-vocab-root
 
 HELP: no-vocab
 { $values { "name" "a vocabulary name" } }
-{ $description "A " { $link no-vocab } " error tuple. Call " { $link throw-no-vocab } " to throw it." }
+{ $description "A " { $link no-vocab } " error tuple. Call " { $link no-vocab } " to throw it." }
 { $error-description "Thrown when a " { $link POSTPONE: USE: } " or " { $link POSTPONE: USING: } " form refers to a non-existent vocabulary." } ;
 
 HELP: load-help?
index 17de3f26d402f9e72fd843c8a819c49891a37bd2..1de8ecabd5f974952607030b6608a0f8e8851e5f 100644 (file)
@@ -36,7 +36,7 @@ ERROR: not-found-in-roots path ;
     vocab-roots get [ prepend-path exists? ] with find nip ;
 
 M: string vocab-path ( string -- path/f )
-    dup find-root-for [ prepend-path ] [ throw-not-found-in-roots ] if* ;
+    dup find-root-for [ prepend-path ] [ not-found-in-roots ] if* ;
 
 PRIVATE>
 
@@ -165,7 +165,7 @@ PRIVATE>
     [
         drop dup find-vocab-root
         [ (require) ]
-        [ dup lookup-vocab [ drop ] [ throw-no-vocab ] if ]
+        [ dup lookup-vocab [ drop ] [ no-vocab ] if ]
         if
     ] if
 ] require-hook set-global
index f7a18a2c53903249e822db237008543b146beeca..5cf59fdaf5ed59b037595d56f13461dff4c43d72 100644 (file)
@@ -58,7 +58,7 @@ ERROR: no-word-in-vocab word vocab ;
 
 : extract-words ( seq vocab -- assoc )
     [ words>> extract-keys dup ] [ name>> ] bi
-    [ swap [ 2drop ] [ throw-no-word-in-vocab ] if ] curry assoc-each ;
+    [ swap [ 2drop ] [ no-word-in-vocab ] if ] curry assoc-each ;
 
 : excluding-words ( seq vocab -- assoc )
     [ nip words>> ] [ extract-words ] 2bi assoc-diff ;
@@ -98,13 +98,13 @@ ERROR: unbalanced-private-declaration vocab ;
 
 : begin-private ( -- )
     current-vocab name>> ".private" ?tail
-    [ throw-unbalanced-private-declaration ]
+    [ unbalanced-private-declaration ]
     [ ".private" append set-current-vocab ] if ;
 
 : end-private ( -- )
     current-vocab name>> ".private" ?tail
     [ set-current-vocab ]
-    [ throw-unbalanced-private-declaration ] if ;
+    [ unbalanced-private-declaration ] if ;
 
 : using-vocab? ( vocab -- ? )
     vocab-name manifest get search-vocab-names>> in? ;
@@ -161,7 +161,7 @@ TUPLE: rename word vocab words ;
 : <rename> ( word vocab new-name -- rename )
     [
         2dup load-vocab words>> dupd at
-        [ ] [ swap throw-no-word-in-vocab ] ?if
+        [ ] [ swap no-word-in-vocab ] ?if
     ] dip associate rename boa ;
 
 : add-renamed-word ( word vocab new-name -- )
index a3389cd2ea1655d8dd6379065ebba4ef8ce8d41b..66f706eac72c9489b9f83549eb822f53f30c2b36 100644 (file)
@@ -24,8 +24,8 @@ SYMBOL: +done+
 ERROR: bad-vocab-name name ;
 
 : check-vocab-name ( name -- name )
-    dup string? [ throw-bad-vocab-name ] unless
-    dup [ ":/\\ " member? ] any? [ throw-bad-vocab-name ] when ;
+    dup string? [ bad-vocab-name ] unless
+    dup [ ":/\\ " member? ] any? [ bad-vocab-name ] when ;
 
 TUPLE: vocab-link name ;
 
index 6cafb20f8ff346351b72ee2e470574c40bff117e..c41ecb16b9c7d0cd653cf79e2be33237280f5edd 100644 (file)
@@ -80,7 +80,7 @@ ERROR: invalid-primitive vocabulary word effect ;
     [ drop vocabulary>> = ]
     [ drop nip primitive? ]
     [ [ nip "declared-effect" word-prop ] dip = ] 3tri and and
-    [ 3drop ] [ throw-invalid-primitive ] if ;
+    [ 3drop ] [ invalid-primitive ] if ;
 
 : lookup-word ( name vocab -- word ) vocab-words-assoc at ;
 
@@ -216,13 +216,13 @@ M: word reset-word
 
 : reveal ( word -- )
     dup [ name>> ] [ vocabulary>> ] bi dup vocab-words-assoc
-    [ ] [ throw-no-vocab ] ?if set-at ;
+    [ ] [ no-vocab ] ?if set-at ;
 
 ERROR: bad-create name vocab ;
 
 : check-create ( name vocab -- name vocab )
     2dup [ string? ] [ [ string? ] [ vocab? ] bi or ] bi* and
-    [ throw-bad-create ] unless ;
+    [ bad-create ] unless ;
 
 : create-word ( name vocab -- word )
     check-create 2dup lookup-word
index 43e33d39916651d15fa3e0a121c2fb7a41ebe6b7..3487423504eb7ff8056c97123a5de011bc346568 100644 (file)
@@ -13,9 +13,9 @@ ERROR: invalid-demangle-args name ;
 : demangle-error ( name status -- )
     {
         {  0 [ drop ] }
-        { -1 [ drop throw-demangle-memory-allocation-failure ] }
-        { -2 [ throw-invalid-mangled-name ] }
-        { -3 [ throw-invalid-demangle-args ] }
+        { -1 [ drop demangle-memory-allocation-failure ] }
+        { -2 [ invalid-mangled-name ] }
+        { -3 [ invalid-demangle-args ] }
     } case ;
 
 : mangled-name? ( name -- ? )
index 2d5d98d01f2f3a3c35e714af6586780dc5a9a373..34405c6c87e7c5c640e30a65ea0b46b4e96a77e3 100755 (executable)
@@ -102,12 +102,12 @@ CONSTANT: fortran>c-types H{
     dims>> [ product 2array ] when* ;
 
 MACRO: size-case-type ( cases -- quot )
-    [ throw-invalid-fortran-type ] suffix
+    [ invalid-fortran-type ] suffix
     '[ [ size>> _ case ] [ append-dimensions ] bi ] ;
 
 : simple-type ( type base-c-type -- c-type )
     swap
-    [ dup size>> [ throw-invalid-fortran-type ] [ drop ] if ]
+    [ dup size>> [ invalid-fortran-type ] [ drop ] if ]
     [ append-dimensions ] bi ;
 
 : new-fortran-type ( out? dims size class -- type )
@@ -150,7 +150,7 @@ M: misc-type (fortran-type>c-type)
 
 : fix-character-type ( character-type -- character-type' )
     clone dup size>>
-    [ dup dims>> [ throw-invalid-fortran-type ] [ dup size>> 1array >>dims f >>size ] if ]
+    [ dup dims>> [ invalid-fortran-type ] [ dup size>> 1array >>dims f >>size ] if ]
     [ dup dims>> [ ] [ f >>dims ] if ] if
     dup single-char? [ f >>dims ] when ;
 
@@ -212,7 +212,7 @@ M: integer-type (fortran-arg>c-args)
             { 2 [ [ c:short <ref>   ] [ drop ] ] }
             { 4 [ [ c:int <ref>     ] [ drop ] ] }
             { 8 [ [ c:longlong <ref> ] [ drop ] ] }
-            [ throw-invalid-fortran-type ]
+            [ invalid-fortran-type ]
         } case
     ] args?dims ;
 
@@ -225,7 +225,7 @@ M: real-type (fortran-arg>c-args)
             { f [ [ c:float <ref> ] [ drop ] ] }
             { 4 [ [ c:float <ref> ] [ drop ] ] }
             { 8 [ [ c:double <ref> ] [ drop ] ] }
-            [ throw-invalid-fortran-type ]
+            [ invalid-fortran-type ]
         } case
     ] args?dims ;
 
@@ -235,7 +235,7 @@ M: real-complex-type (fortran-arg>c-args)
             {  f [ [ <complex-float>  ] [ drop ] ] }
             {  8 [ [ <complex-float>  ] [ drop ] ] }
             { 16 [ [ <complex-double> ] [ drop ] ] }
-            [ throw-invalid-fortran-type ]
+            [ invalid-fortran-type ]
         } case
     ] args?dims ;
 
@@ -266,7 +266,7 @@ M: integer-type (fortran-result>)
             { 2 [ { [ c:short deref    ] } ] }
             { 4 [ { [ c:int deref      ] } ] }
             { 8 [ { [ c:longlong deref ] } ] }
-            [ throw-invalid-fortran-type ]
+            [ invalid-fortran-type ]
         } case
     ] result?dims ;
 
@@ -278,7 +278,7 @@ M: real-type (fortran-result>)
         { f [ { [ c:float deref ] } ] }
         { 4 [ { [ c:float deref ] } ] }
         { 8 [ { [ c:double deref ] } ] }
-        [ throw-invalid-fortran-type ]
+        [ invalid-fortran-type ]
     } case ] result?dims ;
 
 M: real-complex-type (fortran-result>)
@@ -286,7 +286,7 @@ M: real-complex-type (fortran-result>)
         {  f [ { [ *complex-float  ] } ] }
         {  8 [ { [ *complex-float  ] } ] }
         { 16 [ { [ *complex-double ] } ] }
-        [ throw-invalid-fortran-type ]
+        [ invalid-fortran-type ]
     } case ] result?dims ;
 
 M: double-precision-type (fortran-result>)
index b411ebd132566f59775ebb011028c3d9f04e543e..70f985c78d8f1123566145bf7450eda1e7a8cc8d 100644 (file)
@@ -47,7 +47,7 @@ M: sequence shape array-replace wrap-shape ;
 ERROR: no-negative-shape-components shape ;
 
 : check-shape-domain ( seq -- seq )
-    dup [ 0 < ] any? [ throw-no-negative-shape-components ] when ;
+    dup [ 0 < ] any? [ no-negative-shape-components ] when ;
 
 GENERIC: shape-capacity ( shape -- n )
 
@@ -68,20 +68,20 @@ ERROR: no-abnormally-shaped-arrays underlying shape ;
 GENERIC: check-underlying-shape ( underlying shape -- underlying shape )
 
 M: abnormal-shape check-underlying-shape
-    throw-no-abnormally-shaped-arrays ;
+    no-abnormally-shaped-arrays ;
 
 M: uniform-shape check-underlying-shape
     shape>> check-underlying-shape ;
 
 M: sequence check-underlying-shape
     2dup [ length ] [ shape-capacity ] bi*
-    = [ throw-underlying-shape-mismatch ] unless ; inline
+    = [ underlying-shape-mismatch ] unless ; inline
 
 ERROR: shape-mismatch shaped0 shaped1 ;
 
 : check-shape ( shaped-array shaped-array -- shaped-array shaped-array )
     2dup [ shape>> ] bi@
-    sequence= [ throw-shape-mismatch ] unless ;
+    sequence= [ shape-mismatch ] unless ;
 
 TUPLE: shaped-array underlying shape ;
 TUPLE: row-array < shaped-array ;
index 40819a1302d69cd7f8b68ea163fb3885cefb91a4..ad86a8877d4b2e9e056d328abea96920e0268fb2 100644 (file)
@@ -76,7 +76,7 @@ ERROR: unsupported-tag-encoding id ;
     elements get id>> 31 bitand
     dup elements get tag<<
     31 < [
-        get-id throw-unsupported-tag-encoding
+        get-id unsupported-tag-encoding
     ] unless ;
 
 : set-tagclass ( -- )
index fcd36a27bbcbf4964a6973ec4bdf56c528dd0151..dab3be1363e0e3e7e22f4978c1cc9a4d11453f87 100644 (file)
@@ -19,5 +19,5 @@ ERROR: format-unsupported-by-openal audio ;
         { { 1 16 } [ drop AL_FORMAT_MONO16   ] }
         { { 2  8 } [ drop AL_FORMAT_STEREO8  ] }
         { { 2 16 } [ drop AL_FORMAT_STEREO16 ] }
-        [ drop throw-format-unsupported-by-openal ]
+        [ drop format-unsupported-by-openal ]
     } case ;
index 01f2d9b109cf374e0a36b5b82a7aa1517433857a..271e56b1714baf66d19ab950a2fa528ee8f53357 100644 (file)
@@ -8,7 +8,7 @@ ERROR: invalid-audio-file ;
 : ensured-read ( count -- output/f )
     [ read ] keep over length = [ drop f ] unless ;
 : ensured-read* ( count -- output )
-    ensured-read [ throw-invalid-audio-file ] unless* ;
+    ensured-read [ invalid-audio-file ] unless* ;
 
 : read-chunk ( -- byte-array/f )
     4 ensured-read [ 4 ensured-read* dup endian> ensured-read* 3append ] [ f ] if* ;
index 16d82ca55e221733f5dfba9002f2036051ed1b14..5da13cd33e9bb50c3b50fd52092cf5ad24ab132f 100644 (file)
@@ -94,11 +94,11 @@ ERROR: audio-context-not-available device-name ;
 :: <audio-engine> ( device-name voice-count -- engine )
     [
         device-name alcOpenDevice :> al-device
-        al-device [ device-name throw-audio-device-not-found ] unless
+        al-device [ device-name audio-device-not-found ] unless
         al-device |alcCloseDevice* drop
 
         al-device f alcCreateContext :> al-context
-        al-context [ device-name throw-audio-context-not-available ] unless
+        al-context [ device-name audio-context-not-available ] unless
         al-context |alcDestroyContext drop
 
         al-context alcSuspendContext
index ba2a346f7d39e701b86a2435bc1978179494fc6b..d1cb43aa3cd0b232e0f9305316a638f3d21edf25 100644 (file)
@@ -14,7 +14,7 @@ audio-types [ H{ } clone ] initialize
 : read-audio ( path -- audio )
     dup file-extension >lower audio-types get ?at
     [ call( path -- audio ) ]
-    [ throw-unknown-audio-extension ] if ;
+    [ unknown-audio-extension ] if ;
 
 "audio.wav" require
 "audio.aiff" require
index eae8b48509a7918c07286d787ee82be9b3bce56b..d8036b4ee0fd980fa77e846c76f4a72bf8e1058a 100644 (file)
@@ -48,7 +48,7 @@ ERROR: no-vorbis-in-ogg ;
     stream>> read-bytes-into ; inline
 
 : ?ogg-error ( n -- )
-    dup 0 < [ throw-ogg-error ] [ drop ] if ; inline
+    dup 0 < [ ogg-error ] [ drop ] if ; inline
 
 : confirm-buffer ( len vorbis-stream -- ? )
     '[ _ sync-state>> swap ogg_sync_wrote ?ogg-error ] keep zero? not ; inline
@@ -119,11 +119,11 @@ ERROR: no-vorbis-in-ogg ;
     #vorbis-headers>> 1 2 between? not ; inline
 
 : ?vorbis-error ( code -- )
-    [ throw-vorbis-error ] unless-zero ; inline
+    [ vorbis-error ] unless-zero ; inline
 
 : get-remaining-vorbis-header-packet ( player -- ? )
     [ stream-state>> ] [ packet>> ] bi ogg_stream_packetout {
-        { [ dup 0 <   ] [ throw-vorbis-error ] }
+        { [ dup 0 <   ] [ vorbis-error ] }
         { [ dup zero? ] [ drop f ] }
         [ drop t ]
     } cond ;
@@ -153,7 +153,7 @@ ERROR: no-vorbis-in-ogg ;
 
 : initialize-decoder ( vorbis-stream -- )
     dup #vorbis-headers>> zero?
-    [ throw-no-vorbis-in-ogg ]
+    [ no-vorbis-in-ogg ]
     [ init-vorbis-codec ] if ;
 
 : get-pending-decoded-audio ( vorbis-stream -- pcm len )
index 7dc686ea242a1446c9ff18977767583e3bcaa7f8..a87a031e001f7b079df934d94da8f3729e282364 100644 (file)
@@ -13,7 +13,7 @@ ERROR: amb-failure ;
 M: amb-failure summary drop "Backtracking failure" ;
 
 : fail ( -- )
-    failure get [ continue ] [ throw-amb-failure ] if* ;
+    failure get [ continue ] [ amb-failure ] if* ;
 
 : must-be-true ( ? -- )
     [ fail ] unless ;
index e2d5f1cf6d2efc54eef2346d7287ae1c85350608..fb8efb2e2c7e5cb7750271aa79e6c0f234fb323b 100644 (file)
@@ -18,7 +18,7 @@ CONSTANT: alphabet
 
 : base85>ch ( ch -- ch )
     $[ alphabet alphabet-inverse ] nth
-    [ throw-malformed-base85 ] unless* ; inline
+    [ malformed-base85 ] unless* ; inline
 
 : encode4 ( seq -- seq' )
     be> 5 [ 85 /mod ch>base85 ] B{ } replicate-as reverse! nip ; inline
@@ -48,7 +48,7 @@ PRIVATE>
     5 "\n\r" pick read-ignoring dup length {
         { 0 [ 2drop ] }
         { 5 [ decode5 (decode-base85) ] }
-        [ throw-malformed-base85 ]
+        [ malformed-base85 ]
     } case ;
 
 PRIVATE>
index 83839398c9c894e78c959da9b1270f2592e3e0bd..bcc0e85620dc6bf6a985b2015aa7ac75478a1b5b 100644 (file)
@@ -38,7 +38,7 @@ TUPLE: meeting-place count mailbox ;
             { { yellow blue } [ red ] }
             { { blue red } [ yellow ] }
             { { blue yellow } [ red ] }
-            [ throw-bad-color-pair ]
+            [ bad-color-pair ]
         } case
     ] if ;
 
index 05a7066bde42f6d5041fabe39006f091d2635978..60500b3aa8de307f00aa3fda0a28524b0069c60a 100644 (file)
@@ -21,7 +21,7 @@ TUPLE: tcp-echo < threaded-server #times #bytes ;
 ERROR: incorrect-#bytes ;
 
 : check-bytes ( bytes n -- bytes )
-    over length = [ throw-incorrect-#bytes ] unless ;
+    over length = [ incorrect-#bytes ] unless ;
 
 : read-n ( n -- bytes )
     [ read ] [ check-bytes ] bi ;
@@ -46,7 +46,7 @@ M: tcp-echo handle-client*
     <tcp-echo> [
         \ threaded-server get server>address binary [
             #times [ #bytes read-write ] times
-            contents empty? [ throw-incorrect-#bytes ] unless
+            contents empty? [ incorrect-#bytes ] unless
         ] with-client
     ] with-threaded-server ;
 
index 036ec55d40d1b8af39264d010093926226e885a0..f69eff34b011e2f140b54c89c3461a5468ab1d34 100644 (file)
@@ -19,7 +19,7 @@ ERROR: bad-response json status ;
 : check-status ( json -- json )
     dup "status_code" of 200 = [
         dup "status_txt" of
-        throw-bad-response
+        bad-response
     ] unless ;
 
 : json-data ( url -- json )
index 50a680919e8c61e79e25021eb9157ba1a3aa389b..07ff68703a5a6883efc1aed1018d4bf7d9a1aab1 100644 (file)
@@ -73,7 +73,7 @@ ERROR: invalid-capacity capacity ;
 ! If the number of hashes isn't positive, we haven't found
 ! anything smaller than the identity configuration.
 : check-hashes ( 2seq -- 2seq )
-    dup first 0 <= [ throw-invalid-size ] when ;
+    dup first 0 <= [ invalid-size ] when ;
 
 ! The consensus on the tradeoff between increasing the number of
 ! bits and increasing the number of hash functions seems to be
@@ -90,11 +90,11 @@ ERROR: invalid-capacity capacity ;
     ] reduce check-hashes first2 ;
 
 : check-capacity ( capacity -- capacity )
-    dup 0 <= [ throw-invalid-capacity ] when ;
+    dup 0 <= [ invalid-capacity ] when ;
 
 : check-error-rate ( error-rate -- error-rate )
     dup [ 0 after? ] [ 1 before? ] bi and
-    [ throw-invalid-error-rate ] unless ;
+    [ invalid-error-rate ] unless ;
 
 PRIVATE>
 
index cd00dbb03b9e060d4740f8dd8f5a3383b4726f90..62e76eb42cfb8a6f42db4b25ccd1fc466e054b9a 100644 (file)
@@ -60,7 +60,7 @@ DEFER: read-elements
         { T_Binary_Function [ read-sized-string ] }
         { T_Binary_MD5 [ read >string ] }
         { T_Binary_UUID [ read >string ] }
-        [ "unknown binary sub-type" throw-unknown-bson-type ]
+        [ "unknown binary sub-type" unknown-bson-type ]
    } case ; inline
 
 TYPED: bson-regexp-read ( -- mdbregexp: mdbregexp )
@@ -90,7 +90,7 @@ TYPED: element-data-read ( type: integer -- object )
         { T_Code        [ read-int32 read-sized-string ] }
         { T_ScopedCode  [ read-int32 drop read-cstring H{ } clone stream>assoc <mongo-scoped-code> ] }
         { T_NULL        [ f ] }
-        [ "type unknown" throw-unknown-bson-type ]
+        [ "type unknown" unknown-bson-type ]
     } case ; inline recursive
 
 TYPED: (read-object) ( type: integer name: string -- )
index c5232240feb59196e5f426f1b836243c509d2810..55e11edde570a5a38dcda5d2f3e4a4504907d31a 100644 (file)
@@ -81,7 +81,7 @@ ERROR: header-file-missing path ;
     skip-whitespace/comments advance dup previous {
         { CHAR: < [ CHAR: > take-until-object read-standard-include ] }
         { CHAR: " [ CHAR: " take-until-object read-local-include ] }
-        [ throw-bad-include-line ]
+        [ bad-include-line ]
     } case ;
 
 : (readlns) ( -- )
@@ -155,7 +155,7 @@ ERROR: header-file-missing path ;
         { "else" [ handle-else ] }
         { "pragma" [ handle-pragma ] }
         { "include_next" [ handle-include-next ] }
-        [ throw-unknown-c-preprocessor ]
+        [ unknown-c-preprocessor ]
     } case ;
 
 : parse-directive-line ( preprocessor-state sequence-parser -- )
index 30efcebb243904023a7062414a367e22c2419067..b08729b7a1d8c1b2faf6af50894623667251f10a 100644 (file)
@@ -44,7 +44,7 @@ ERROR: no-cairo-t ;
 <PRIVATE
 
 : draw-hello-world ( gadget -- )
-    cairo-t>> [ throw-no-cairo-t ] unless*
+    cairo-t>> [ no-cairo-t ] unless*
     {
         [
             "Sans" CAIRO_FONT_SLANT_NORMAL CAIRO_FONT_WEIGHT_BOLD
index 700f5bf38a51b8302c12765f25ea52d150b7f348..49d9d5098c48aa1467d52734d301fc8b48f6bb8d 100644 (file)
@@ -26,9 +26,9 @@ ERROR: repeated-constructor-parameters class effect ;
 ERROR: unknown-constructor-parameters class effect unknown ;
 
 : ensure-constructor-parameters ( class effect -- class effect )
-    dup in>> all-unique? [ throw-repeated-constructor-parameters ] unless
+    dup in>> all-unique? [ repeated-constructor-parameters ] unless
     2dup [ all-slots [ name>> ] map ] [ in>> ] bi* swap diff
-    [ throw-unknown-constructor-parameters ] unless-empty ;
+    [ unknown-constructor-parameters ] unless-empty ;
 
 : constructor-boa-quot ( constructor-word class effect -- word quot )
     in>> swap '[ _ _ slots>boa ] ; inline
index 7cf1bb7b5eae74ddb157b6089df7667c42db58ce..1d48355f04de3a67a515551f29e81d58c58eeb3c 100644 (file)
@@ -488,7 +488,7 @@ ERROR: undefined-8080-opcode n ;
     dup instruction-cycles nth [
         nip
     ] [
-        throw-undefined-8080-opcode
+        undefined-8080-opcode
     ] if* ;
 
 : process-interrupts ( cpu -- )
index 1b1323b1317232fdbd5a6922af79d6406da6aba9..36c73842c221a1ac3363d7588dd238195f404149 100644 (file)
@@ -149,7 +149,7 @@ M: aes-128-key key-expand-round ( temp i -- temp' )
 
 ERROR: aes-192-256-not-implemented ;
 M: aes-256-key key-expand-round ( temp i -- temp' )
-    throw-aes-192-256-not-implemented ;
+    aes-192-256-not-implemented ;
 
 : (key-sched-round) ( output temp i -- output' )
     key-expand-round
index bfeaf9af970721b09df0e22ef6f078e3e29e2a3d..45bbe55d6eb2deb34ecbac8437241ec6cdec9e12 100644 (file)
@@ -8,5 +8,5 @@ IN: crypto.xor
 ERROR: empty-xor-key ;
 
 : xor-crypt ( seq key -- seq' )
-    [ throw-empty-xor-key ] when-empty
+    [ empty-xor-key ] when-empty
     [ dup length iota ] dip '[ _ mod-nth bitxor ] 2map ;
index 54ae4a24ab8142744cb2d53a2bc74bb95ba8ae40..9ecaebce29b37bf18dd3571abf4f066518600424 100644 (file)
@@ -13,7 +13,7 @@ IN: cuda
 ERROR: cuda-error-state code ;
 
 : cuda-error ( code -- )
-    dup CUDA_SUCCESS = [ drop ] [ throw-cuda-error-state ] if ;
+    dup CUDA_SUCCESS = [ drop ] [ cuda-error-state ] if ;
 
 : cuda-version ( -- n )
     { c:int } [ cuDriverGetVersion cuda-error ] with-out-parameters ;
index fdf0799aa68e4eae6f37c95388ff1b6160ede88f..f899d4430d303af4a3b6e68e7cd52a78888dd1c1 100644 (file)
@@ -86,10 +86,10 @@ PRIVATE>
 ERROR: no-cuda-library name ;
 
 : lookup-cuda-library ( name -- cuda-library )
-    cuda-libraries get ?at [ throw-no-cuda-library ] unless ;
+    cuda-libraries get ?at [ no-cuda-library ] unless ;
 
 : remove-cuda-library ( name -- library )
-    cuda-libraries get ?delete-at [ throw-no-cuda-library ] unless ;
+    cuda-libraries get ?delete-at [ no-cuda-library ] unless ;
 
 : unload-cuda-library ( name -- )
     remove-cuda-library handle>> unload-module ;
@@ -189,7 +189,7 @@ TUPLE: cuda-library name abi path handle ;
 ERROR: bad-cuda-abi abi ;
 
 : check-cuda-abi ( abi -- abi )
-    dup cuda-abi? [ throw-bad-cuda-abi ] unless ; inline
+    dup cuda-abi? [ bad-cuda-abi ] unless ; inline
 
 : <cuda-library> ( name abi path -- obj )
     \ cuda-library new
index 443ff21363d91a4c6dd7b7116a42e89f19d47b78..c1e35c32caea95275cfbcad681eae616b8b2f608 100644 (file)
@@ -26,6 +26,6 @@ ERROR: nvcc-failed n path ;
     path normalize-path :> path2
     path2 parent-directory [
         path2 nvcc-command
-        run-process wait-for-process [ path2 throw-nvcc-failed ] unless-zero
+        run-process wait-for-process [ path2 nvcc-failed ] unless-zero
         path2 cu>ptx
     ] with-directory ;
index b5bd8dbfc7f20c31d2d19d61d66a6391d20447a0..4b85060a84609b1d9a552d0199fa486777b227b4 100644 (file)
@@ -31,7 +31,7 @@ ERROR: unknown-filetype filetype ;
 
 : check-filetype ( filetype -- filetype )
     dup { "BINARY" "MOTOROLA" "AIFF" "WAVE" "MP3" } member?
-    [ throw-unknown-filetype ] unless ;
+    [ unknown-filetype ] unless ;
 
 ERROR: unknown-flag flag ;
 
index c089cea91fdc34a3f16626d567415ac6718523d0..a6629650ad107cd92250d7f3a2ee70fd2eae7448 100644 (file)
@@ -179,8 +179,8 @@ ERROR: unsupported-curses-terminal ;
 : >BOOLEAN ( ? -- TRUE/FALSE ) ffi:TRUE ffi:FALSE ? ; inline
 
 : curses-pointer-error ( ptr/f -- ptr )
-    [ throw-curses-failed ] unless* ; inline
-: curses-error ( n -- ) ffi:ERR = [ throw-curses-failed ] when ;
+    [ curses-failed ] unless* ; inline
+: curses-error ( n -- ) ffi:ERR = [ curses-failed ] when ;
 
 PRIVATE>
 
@@ -262,7 +262,7 @@ PRIVATE>
     [ current-window ] dip with-variable ; inline
 
 : with-curses ( window quot -- )
-    curses-ok? [ throw-unsupported-curses-terminal ] unless
+    curses-ok? [ unsupported-curses-terminal ] unless
     [
         '[
             ffi:initscr curses-pointer-error
index b552ff1360eb02c9d3a3be87184596c61b8f063e..d4ad091078bbe114c5788e48fc6c647ef6157b5f 100644 (file)
@@ -69,7 +69,7 @@ M: input-cursor cursor-key-value-unsafe cursor-key-value ; inline
 M: input-cursor cursor-key-value
     dup cursor-valid?
     [ cursor-key-value-unsafe ]
-    [ throw-invalid-cursor ] if ; inline
+    [ invalid-cursor ] if ; inline
 
 : cursor-key ( cursor -- key ) cursor-key-value drop ;
 : cursor-value ( cursor -- key ) cursor-key-value nip ;
@@ -91,7 +91,7 @@ M: output-cursor set-cursor-value-unsafe set-cursor-value ; inline
 M: output-cursor set-cursor-value
     dup cursor-valid?
     [ set-cursor-value-unsafe ]
-    [ throw-invalid-cursor ] if ; inline
+    [ invalid-cursor ] if ; inline
 
 !
 ! stream cursors
index fc48561e8c987f014b4b9d5d66a4502885d7ea78..726212b0ea76afa5b43508dc00b803d8746dafc1 100644 (file)
@@ -21,7 +21,7 @@ ERROR: decimal-test-failure D1 D2 quot ;
     D1 D2
     quot1 [ decimal>ratio >float ] compose
     [ [ decimal>ratio ] bi@ quot2 call( obj obj -- obj ) >float ] 2bi -.1 ~
-    [ t ] [ D1 D2 quot1 throw-decimal-test-failure ] if ; inline
+    [ t ] [ D1 D2 quot1 decimal-test-failure ] if ; inline
 
 : test-decimal-op ( quot1 quot2 -- ? )
     [ random-test-decimal random-test-decimal ] 2dip (test-decimal-op) ; inline
index 23fa3a273d35dd5435566c77d33646d34cd89a7a..1d244f0355a29f1f6dbae0188b9aface42a05eb1 100644 (file)
@@ -43,7 +43,7 @@ ERROR: decimal-types-expected d1 d2 ;
 
 : guard-decimals ( obj1 obj2 -- D1 D2 )
     2dup [ decimal? ] both?
-    [ throw-decimal-types-expected ] unless ;
+    [ decimal-types-expected ] unless ;
 
 M: decimal equal?
     {
index ccf29a02c3e361c2f0beab5a8a89fce7bfe4744f..112540bc91a0c87e3dd1a8d1d9bfb1dac1e7cc08 100644 (file)
@@ -19,7 +19,7 @@ M: descriptive-error error.
 
 : rethrower ( word inputs -- quot )
     [ length ] keep [ [ narray ] dip swap 2array flip ] 2curry
-    [ 2 ndip throw-descriptive-error ] 2curry ;
+    [ 2 ndip descriptive-error ] 2curry ;
 
 : [descriptive] ( word def effect -- newdef )
     swapd in>> rethrower [ recover ] 2curry ;
index 917e1bcb2b03363db0a99fe6cfd062dea9546f1a..d8e3f6bdf77a58eb64ac1bdab830eabddd8445e3 100644 (file)
@@ -242,7 +242,7 @@ ERROR: unsupported-domain-name string ;
 
 : >n/label ( string -- byte-array )
     dup [ ascii? ] all?
-    [ throw-unsupported-domain-name ] unless
+    [ unsupported-domain-name ] unless
     [ length 1array ] [ ] bi B{ } append-as ;
 
 : >name ( domain -- byte-array )
index 0f26a5bbbd71d06522a870ba9abbf40922fafca9..f3ce44dc869b4ecb1c96621a74963fbe2d9a1d34 100644 (file)
@@ -16,7 +16,7 @@ IN: forestdb.lib
 ERROR: fdb-error error ;
 
 : fdb-check-error ( ret -- )
-    dup FDB_RESULT_SUCCESS = [ drop ] [ throw-fdb-error ] if ;
+    dup FDB_RESULT_SUCCESS = [ drop ] [ fdb-error ] if ;
 
 
 TUPLE: fdb-kvs-handle < disposable handle ;
@@ -93,7 +93,7 @@ SYMBOL: current-fdb-kvs-handle
     rot {
         { FDB_RESULT_SUCCESS [ ret>string ] }
         { FDB_RESULT_KEY_NOT_FOUND [ 2drop f ] }
-        [ throw-fdb-error ]
+        [ fdb-error ]
     } case ;
 
 : fdb-del-kv ( key -- )
index 79c54b12e041b418b1662d8056b98a8288c2e748..d27af11e6a760505049472aad627430f5eb39202 100644 (file)
@@ -18,12 +18,12 @@ CONSTANT: fdb-filename-base "fq"
 ERROR: not-an-fdb-filename string ;
 
 : ensure-fdb-filename ( string -- string )
-    dup fdb-filename? [ throw-not-an-fdb-filename ] unless ;
+    dup fdb-filename? [ not-an-fdb-filename ] unless ;
 
 ERROR: not-a-string-number string ;
 
 : ?string>number ( string -- n )
-    dup string>number dup [ nip ] [ throw-not-a-string-number ] if ;
+    dup string>number dup [ nip ] [ not-a-string-number ] if ;
 
 : change-string-number ( string quot -- string' )
     [ [ string>number ] dip call number>string ] 2keep drop
index fe4535957bc069f68daa8477fd6ce9f845013ebb..7b30d25f0e6861d193a13c06cecd3ca846b8fd4e 100755 (executable)
@@ -55,12 +55,12 @@ ERROR: display-change-error n ;
 : fullscreen-mode ( monitor-info devmode -- )
     [ szDevice>> ] dip f CDS_FULLSCREEN f
     ChangeDisplaySettingsEx dup DISP_CHANGE_SUCCESSFUL =
-    [ drop ] [ throw-display-change-error ] if ;
+    [ drop ] [ display-change-error ] if ;
 
 : non-fullscreen-mode ( monitor-info devmode -- )
     [ szDevice>> ] dip f 0 f
     ChangeDisplaySettingsEx dup DISP_CHANGE_SUCCESSFUL =
-    [ drop ] [ throw-display-change-error ] if ;
+    [ drop ] [ display-change-error ] if ;
 
 : get-style ( hwnd n -- style )
     GetWindowLongPtr [ win32-error=0/f ] keep ;
@@ -86,7 +86,7 @@ ERROR: unsupported-resolution triple ;
     [
         slots{ dmPelsWidth dmPelsHeight dmBitsPerPel }
         triple =
-    ] find nip [ triple throw-unsupported-resolution ] unless* ;
+    ] find nip [ triple unsupported-resolution ] unless* ;
 
 :: set-fullscreen-window-position ( hwnd triple -- )
     hwnd f
index 3342aceeddfcd0adf3ae2a6e26166ceb8bd58125..18773e79a46f35c64bb82d3f8e11fc81dc07f158 100644 (file)
@@ -24,12 +24,12 @@ SYMBOLS: up-axis unit-ratio ;
 
 : x/ ( tag child-name -- child-tag )
     [ tag-named ]
-    [ rot dup [ drop throw-missing-child ] unless 2nip ]
+    [ rot dup [ drop missing-child ] unless 2nip ]
     2bi ; inline
 
 : x@ ( tag attr-name -- attr-value )
     [ attr ]
-    [ rot dup [ drop throw-missing-attr ] unless 2nip ]
+    [ rot dup [ drop missing-attr ] unless 2nip ]
     2bi ; inline
 
 : xt ( tag -- content ) children>string ;
index 73fa57af8abca2b7d5159a370404b03ca59bb65e..d566c512b11b7607de8499797d43b782739e783c 100644 (file)
@@ -15,11 +15,11 @@ types [ H{ } clone ] initialize
 
 : models-class ( path -- class )
     file-extension >lower types get ?at
-    [ throw-unknown-models-extension ] unless second ;
+    [ unknown-models-extension ] unless second ;
 
 : models-encoding ( path -- encoding )
     file-extension >lower types get ?at
-    [ throw-unknown-models-extension ] unless first ;
+    [ unknown-models-extension ] unless first ;
 
 : open-models-file ( path encoding -- stream )
     <file-reader> ;
index 2738801ef2892f79033cb295189a78a1f5679856..7a7d19513711198e760ffae095f2430d2dd7c87a 100644 (file)
@@ -26,8 +26,8 @@ TUPLE: response-error response error ;
 : check-response ( response -- response )
     "responseStatus" over at {
         { 200 [ ] }
-        { 400 [ throw-response-error ] }
-        [ drop throw-response-error ]
+        { 400 [ response-error ] }
+        [ drop response-error ]
     } case ;
 
 : query-response>text ( response -- text )
index 96d27c99fd767fbb8972031d273a265d55a1dad5..32d81cf3786c23fc20f94091b1d79a0a1aa9ba7a 100644 (file)
@@ -53,7 +53,7 @@ ERROR: not-a-gopher-url url ;
 
 : gopher ( url -- item-type byte-array )
     dup url? [ >url ] unless
-    dup protocol>> "gopher" = [ throw-not-a-gopher-url ] unless {
+    dup protocol>> "gopher" = [ not-a-gopher-url ] unless {
         [ host>> ]
         [ port>> 70 or <inet> binary ]
         [ path>> rest [ "1/" ] when-empty ]
index 312559e0dea15e808d71adde47fa6491e002775a..f157e322a81185555952f73c6f1e9618ea838518 100755 (executable)
@@ -399,7 +399,7 @@ DEFER: [bind-uniform-tuple]
         { mat4-uniform   { [ dim 0 ] dip 4 4 >uniform-matrix-array glUniformMatrix4fv   } }
 
         { texture-uniform { drop dim dup iota [ texture-unit + ] int-array{ } map-as glUniform1iv } }
-    } at [ uniform throw-invalid-uniform-type ] unless* >quotation :> value-quot
+    } at [ uniform invalid-uniform-type ] unless* >quotation :> value-quot
 
     type uniform-type-texture-units dim * texture-unit +
     pre-quot value-quot append ;
@@ -442,7 +442,7 @@ DEFER: [bind-uniform-tuple]
         { mat4-uniform   [ [ 1 0 ] dip 4 4 >uniform-matrix glUniformMatrix4fv   ] }
 
         { texture-uniform { drop texture-unit glUniform1i } }
-    } at [ uniform throw-invalid-uniform-type ] unless* >quotation :> value-quot
+    } at [ uniform invalid-uniform-type ] unless* >quotation :> value-quot
 
     type uniform-type-texture-units texture-unit +
     pre-quot value-quot append ;
index a1f514e2466c6ad4e3feb1eba48448b5f2cb7469..108bfa1076a239494d28dc00db571d34b633dfb6 100755 (executable)
@@ -139,7 +139,7 @@ TR: hyphens>underscores "-" "_" ;
         [ vertex-attribute name>> name = ]
         [ size 1 = ]
         [ gl-type vertex-attribute [ component-type>> ] [ dim>> ] bi feedback-type= ]
-    } 0&& [ vertex-attribute throw-inaccurate-feedback-attribute-error ] unless ;
+    } 0&& [ vertex-attribute inaccurate-feedback-attribute-error ] unless ;
 
 :: (bind-float-vertex-attribute) ( program-instance ptr name dim gl-type normalize? stride offset -- )
     program-instance name attribute-index :> idx
@@ -182,7 +182,7 @@ TR: hyphens>underscores "-" "_" ;
 
 :: [link-feedback-format] ( vertex-attributes -- quot )
     vertex-attributes [ name>> not ] any?
-    [ [ nip throw-invalid-link-feedback-format-error ] ] [
+    [ [ nip invalid-link-feedback-format-error ] ] [
         vertex-attributes
         [ name>> ascii malloc-string ]
         void*-array{ } map-as :> varying-names
@@ -473,7 +473,7 @@ DEFER: <shader-instance>
     [ ] [ source>> ] [ kind>> gl-shader-kind ] tri <gl-shader>
     dup gl-shader-ok?
     [ swap world get \ shader-instance boa window-resource ]
-    [ throw-compile-shader-error ] if ;
+    [ compile-shader-error ] if ;
 
 : (link-program) ( program shader-instances -- program-instance )
     '[ _ [ handle>> ] map ]
@@ -488,7 +488,7 @@ DEFER: <shader-instance>
     dup gl-program-ok?  [
         [ swap world get \ program-instance boa |dispose dup verify-feedback-format ]
         with-destructors window-resource
-    ] [ throw-link-program-error ] if ;
+    ] [ link-program-error ] if ;
 
 : link-program ( program -- program-instance )
     dup shaders>> [ <shader-instance> ] map (link-program) ;
@@ -529,7 +529,7 @@ TUPLE: feedback-format
 : validate-feedback-format ( sequence -- vertex-format/f )
     dup length 1 <=
     [ [ f ] [ first vertex-format>> ] if-empty ]
-    [ throw-too-many-feedback-formats-error ] if ;
+    [ too-many-feedback-formats-error ] if ;
 
 : ?shader ( object -- shader/f )
     dup word? [ def>> first dup shader? [ drop f ] unless ] [ drop f ] if ;
index b95f5548381727db457fd9c453d99bf8a061b056..6caf5250ee86a1991b2854fb0b290c4932711e92 100644 (file)
@@ -112,7 +112,7 @@ PRIVATE>
         { "png"  [ ".png" ] }
         { "tif"  [ ".tif" ] }
         { "tiff" [ ".tif" ] }
-        [ throw-unsupported-preview-format ]
+        [ unsupported-preview-format ]
     } case ;
 
 :: with-preview ( graph quot: ( path -- ) -- )
index e8721c8785ea3129329d6416f5cab45a1cd88b05..e48f09d6608bf97d771c5a51d63c7104fb26832b 100644 (file)
@@ -36,7 +36,7 @@ IN: html.parser.analyzer
 ERROR: undefined-find-nth m n seq quot ;
 
 : check-trivial-find ( m n seq quot -- m n seq quot )
-    pick 0 = [ throw-undefined-find-nth ] when ; inline
+    pick 0 = [ undefined-find-nth ] when ; inline
 
 : find-nth-from ( m n seq quot -- i/f elt/f )
     check-trivial-find [ f ] 3dip '[
index f17a5975f98a1f88378434428ff4a6d72f00cbc6..8d03207cd59b631786025523780ce3d6174a95c5 100644 (file)
@@ -56,7 +56,7 @@ ERROR: atlas-image-formats-dont-match images ;
         [ [ upside-down?>>    ] same? ] 2tri and and
     ] all?
     [ first [ component-order>> ] [ component-type>> ] [ upside-down?>> ] tri ]
-    [ throw-atlas-image-formats-dont-match ] if ; inline
+    [ atlas-image-formats-dont-match ] if ; inline
 
 : atlas-dim ( image-placements -- dim )
     [ [ loc>> ] [ image>> dim>> ] bi v+ atlas-padding v+n ] [ vmax ] map-reduce
index 61697207cfcfad176f11e6fa2e47b824103a51fc..2ac2326e3296c5c85f2ebf38aa2c70bda5fdfe49 100644 (file)
@@ -182,7 +182,7 @@ UNION: os2-header os2v1-header os2v2-header ;
         { 40 [ read-v3-header ] }
         { 108 [ read-v4-header ] }
         { 124 [ read-v5-header ] }
-        [ throw-unknown-bitmap-header ]
+        [ unknown-bitmap-header ]
     } case ;
 
 : color-index-length ( header -- n )
@@ -228,7 +228,7 @@ GENERIC: bitmap>component-order* ( loading-bitmap header -- object )
         { 8 [ BGR ] }
         { 4 [ BGR ] }
         { 1 [ BGR ] }
-        [ throw-unknown-component-order ]
+        [ unknown-component-order ]
     } case ;
 
 : advanced-bitmap>component-order ( loading-bitmap -- object )
index 5702a91d7a5148c362e4af0330b55c7b51d838af..13e0cc1ac6b432358839755e40481418bb9bddad 100644 (file)
@@ -126,7 +126,7 @@ CONSTANT: BLOCK-TERMINATOR 0x00
 
 ERROR: unimplemented message ;
 : read-GIF87a ( loading-gif -- loading-gif )
-    "GIF87a" throw-unimplemented ;
+    "GIF87a" unimplemented ;
 
 : read-logical-screen-descriptor ( loading-gif -- loading-gif )
     2 read le> >>width
@@ -182,8 +182,8 @@ ERROR: unimplemented message ;
         { APPLICATION-EXTENSION [
             read-application-extension over application-extensions>> push
         ] }
-        { f [ throw-gif-unexpected-eof ] }
-        [ throw-unknown-extension ]
+        { f [ gif-unexpected-eof ] }
+        [ unknown-extension ]
     } case ;
 
 ERROR: unhandled-data byte ;
@@ -197,7 +197,7 @@ ERROR: unhandled-data byte ;
         ] }
         { IMAGE-DESCRIPTOR [ read-table-based-image ] }
         { TRAILER [ f >>loading? ] }
-        [ throw-unhandled-data ]
+        [ unhandled-data ]
     } case ;
 
 : read-GIF89a ( loading-gif -- loading-gif )
@@ -211,7 +211,7 @@ ERROR: unhandled-data byte ;
         read-gif-header dup magic>> {
             { "GIF87a" [ read-GIF87a ] }
             { "GIF89a" [ read-GIF89a ] }
-            [ throw-unsupported-gif-format ]
+            [ unsupported-gif-format ]
         } case
     ] with-input-stream ;
 
@@ -246,7 +246,7 @@ ERROR: unhandled-data byte ;
 ERROR: loading-gif-error gif-image ;
 
 : ensure-loaded ( gif-image -- gif-image )
-    dup loading?>> [ throw-loading-gif-error ] when ;
+    dup loading?>> [ loading-gif-error ] when ;
 
 M: gif-image stream>image* ( path gif-image -- image )
     drop load-gif ensure-loaded gif>image ;
index 611c0308ecd8c54ef6d8c8c850ad3cf7dbdf81b4..ffd0a7a09dafe7bb48f73ca76490cf5259af05c5 100644 (file)
@@ -56,7 +56,7 @@ ERROR: bad-png-header header ;
 
 : read-png-header ( -- )
     8 read dup png-header sequence= [
-        throw-bad-png-header
+        bad-png-header
     ] unless drop ;
 
 ERROR: bad-checksum ;
index f7b09cf34149c5fc38df2a91499b3438e45032c8..c64f4907d89e5db8c36c034b029172313a4cf069 100644 (file)
@@ -20,11 +20,11 @@ ERROR: bad-tga-unsupported ;
 
 : read-color-map-type ( -- byte )
     1 read le> dup
-    { 0 1 } member? [ throw-bad-tga-header ] unless ;
+    { 0 1 } member? [ bad-tga-header ] unless ;
 
 : read-image-type ( -- byte )
     1 read le> dup
-    { 0 1 2 3 9 10 11 } member? [ throw-bad-tga-header ] unless ; inline
+    { 0 1 2 3 9 10 11 } member? [ bad-tga-header ] unless ; inline
 
 : read-color-map-first ( -- short )
     2 read le> ; inline
@@ -70,10 +70,10 @@ ERROR: bad-tga-unsupported ;
     4 read le> ; inline
 
 : read-signature ( -- )
-    18 read ascii decode "TRUEVISION-XFILE.\0" = [ throw-bad-tga-footer ] unless ; inline
+    18 read ascii decode "TRUEVISION-XFILE.\0" = [ bad-tga-footer ] unless ; inline
 
 : read-extension-size ( -- )
-    2 read le> 495 = [ throw-bad-tga-extension-size ] unless ; inline
+    2 read le> 495 = [ bad-tga-extension-size ] unless ; inline
 
 : read-author-name ( -- string )
     41 read ascii decode [ 0 = ] trim ; inline
@@ -83,12 +83,12 @@ ERROR: bad-tga-unsupported ;
 
 : read-date-timestamp ( -- timestamp )
     timestamp new
-    2 read le> dup 12 [1,b] member? [ throw-bad-tga-timestamp ] unless >>month
-    2 read le> dup 31 [1,b] member? [ throw-bad-tga-timestamp ] unless >>day
+    2 read le> dup 12 [1,b] member? [ bad-tga-timestamp ] unless >>month
+    2 read le> dup 31 [1,b] member? [ bad-tga-timestamp ] unless >>day
     2 read le>                                                   >>year
-    2 read le> dup 23 [0,b] member? [ throw-bad-tga-timestamp ] unless >>hour
-    2 read le> dup 59 [0,b] member? [ throw-bad-tga-timestamp ] unless >>minute
-    2 read le> dup 59 [0,b] member? [ throw-bad-tga-timestamp ] unless >>second ; inline
+    2 read le> dup 23 [0,b] member? [ bad-tga-timestamp ] unless >>hour
+    2 read le> dup 59 [0,b] member? [ bad-tga-timestamp ] unless >>minute
+    2 read le> dup 59 [0,b] member? [ bad-tga-timestamp ] unless >>second ; inline
 
 : read-job-name ( -- string )
     41 read ascii decode [ 0 = ] trim ; inline
@@ -96,8 +96,8 @@ ERROR: bad-tga-unsupported ;
 : read-job-time ( -- duration )
     duration new
     2 read le>                                                   >>hour
-    2 read le> dup 59 [0,b] member? [ throw-bad-tga-timestamp ] unless >>minute
-    2 read le> dup 59 [0,b] member? [ throw-bad-tga-timestamp ] unless >>second ; inline
+    2 read le> dup 59 [0,b] member? [ bad-tga-timestamp ] unless >>minute
+    2 read le> dup 59 [0,b] member? [ bad-tga-timestamp ] unless >>second ; inline
 
 : read-software-id ( -- string )
     41 read ascii decode [ 0 = ] trim ; inline
@@ -240,10 +240,10 @@ ERROR: bad-tga-unsupported ;
 
     #! Only 24-bit uncompressed BGR and 32-bit uncompressed BGRA are supported.
     #! Other formats would need to be converted to work within the image class.
-    map-type 0 = [ throw-bad-tga-unsupported ] unless
-    image-type 2 = [ throw-bad-tga-unsupported ] unless
-    pixel-depth { 24 32 } member? [ throw-bad-tga-unsupported ] unless
-    pixel-order { 0 2 } member? [ throw-bad-tga-unsupported ] unless
+    map-type 0 = [ bad-tga-unsupported ] unless
+    image-type 2 = [ bad-tga-unsupported ] unless
+    pixel-depth { 24 32 } member? [ bad-tga-unsupported ] unless
+    pixel-order { 0 2 } member? [ bad-tga-unsupported ] unless
 
     #! Create image instance
     image new
@@ -259,7 +259,7 @@ M: tga-image stream>image*
 M: tga-image image>stream
     2drop
     [
-        component-order>> { BGRA BGRA } member? [ throw-bad-tga-unsupported ] unless
+        component-order>> { BGRA BGRA } member? [ bad-tga-unsupported ] unless
     ] keep
 
     B{ 0 }         write #! id-length
index c9343396b801a5d3b50facb34b2621ec9c635ad2..aee3d747d97c6d4e76779a69d8051dcf74860257 100755 (executable)
@@ -65,7 +65,7 @@ ERROR: bad-photometric-interpretation n ;
         { 10 [ photometric-interpretation-itulab ] }
         { 32844 [ photometric-interpretation-logl ] }
         { 32845 [ photometric-interpretation-logluv ] }
-        [ throw-bad-photometric-interpretation ]
+        [ bad-photometric-interpretation ]
     } case ;
 
 SINGLETONS: compression
@@ -124,7 +124,7 @@ ERROR: bad-compression n ;
         { 34676 [ compression-sgilog ] }
         { 34677 [ compression-sgilog24 ] }
         { 34712 [ compression-jp2000 ] }
-        [ throw-bad-compression ]
+        [ bad-compression ]
     } case ;
 
 SINGLETONS: resolution-unit
@@ -137,7 +137,7 @@ ERROR: bad-resolution-unit n ;
         { 1 [ resolution-unit-none ] }
         { 2 [ resolution-unit-inch ] }
         { 3 [ resolution-unit-centimeter ] }
-        [ throw-bad-resolution-unit ]
+        [ bad-resolution-unit ]
     } case ;
 
 SINGLETONS: predictor
@@ -148,7 +148,7 @@ ERROR: bad-predictor n ;
     {
         { 1 [ predictor-none ] }
         { 2 [ predictor-horizontal-differencing ] }
-        [ throw-bad-predictor ]
+        [ bad-predictor ]
     } case ;
 
 SINGLETONS: planar-configuration
@@ -159,7 +159,7 @@ ERROR: bad-planar-configuration n ;
     {
         { 1 [ planar-configuration-chunky ] }
         { 2 [ planar-configuration-planar ] }
-        [ throw-bad-planar-configuration ]
+        [ bad-planar-configuration ]
     } case ;
 
 SINGLETONS: sample-format
@@ -177,7 +177,7 @@ ERROR: bad-sample-format n ;
             { 2 [ sample-format-signed-integer ] }
             { 3 [ sample-format-ieee-float ] }
             { 4 [ sample-format-undefined-data ] }
-            [ throw-bad-sample-format ]
+            [ bad-sample-format ]
         } case
     ] map ;
 
@@ -191,7 +191,7 @@ ERROR: bad-extra-samples n ;
         { 0 [ extra-samples-unspecified-alpha-data ] }
         { 1 [ extra-samples-associated-alpha-data ] }
         { 2 [ extra-samples-unassociated-alpha-data ] }
-        [ throw-bad-extra-samples ]
+        [ bad-extra-samples ]
     } case ;
 
 SINGLETONS: image-length image-width x-resolution y-resolution
@@ -224,7 +224,7 @@ ERROR: bad-jpeg-proc n ;
     {
         { 1 [ jpeg-proc-baseline ] }
         { 14 [ jpeg-proc-lossless ] }
-        [ throw-bad-jpeg-proc ]
+        [ bad-jpeg-proc ]
     } case ;
 
 ERROR: bad-tiff-magic bytes ;
@@ -232,7 +232,7 @@ ERROR: bad-tiff-magic bytes ;
     {
         { B{ CHAR: M CHAR: M } [ big-endian ] }
         { B{ CHAR: I CHAR: I } [ little-endian ] }
-        [ throw-bad-tiff-magic ]
+        [ bad-tiff-magic ]
     } case ;
 
 : read-header ( tiff -- tiff )
@@ -277,7 +277,7 @@ ERROR: no-tag class ;
     swap processed-tags>> ?at ;
 
 : find-tag ( ifd class -- tag )
-    find-tag* [ throw-no-tag ] unless ;
+    find-tag* [ no-tag ] unless ;
 
 : tag? ( ifd class -- tag )
     swap processed-tags>> key? ;
@@ -314,7 +314,7 @@ ERROR: unknown-ifd-type n where ;
         { 11 [ 4 * ] }
         { 12 [ 8 * ] }
         { 13 [ 4 * ] }
-        [ "value-length" throw-unknown-ifd-type ]
+        [ "value-length" unknown-ifd-type ]
     } case ;
 
 ERROR: bad-small-ifd-type n ;
@@ -330,7 +330,7 @@ ERROR: bad-small-ifd-type n ;
         { 9 [ endian> 32 >signed ] }
         { 11 [ endian> bits>float ] }
         { 13 [ endian> 32 >signed ] }
-        [ throw-bad-small-ifd-type ]
+        [ bad-small-ifd-type ]
     } case ;
 
 : offset-bytes>obj ( bytes type -- obj )
@@ -347,7 +347,7 @@ ERROR: bad-small-ifd-type n ;
         { 10 [ 8 group [ "ii" unpack first2 / ] map ] }
         { 11 [ 4 group [ "f" unpack ] map ] }
         { 12 [ 8 group [ "d" unpack ] map ] }
-        [ "offset-bytes>obj" throw-unknown-ifd-type ]
+        [ "offset-bytes>obj" unknown-ifd-type ]
     } case ;
 
 : ifd-entry-value ( ifd-entry -- n )
@@ -455,7 +455,7 @@ ERROR: unhandled-compression compression ;
     {
         { compression-none [ ] }
         { compression-lzw [ [ tiff-lzw-uncompress ] map ] }
-        [ throw-unhandled-compression ]
+        [ unhandled-compression ]
     } case ;
 
 : uncompress-strips ( ifd -- ifd )
@@ -483,7 +483,7 @@ ERROR: unhandled-compression compression ;
         {
             { predictor-none [ ] }
             { predictor-horizontal-differencing [ (strips-predictor) ] }
-            [ throw-bad-predictor ]
+            [ bad-predictor ]
         } case
     ] when ;
 
@@ -499,7 +499,7 @@ ERROR: unknown-component-order ifd ;
         { { 8 8 8 8 } [ ] }
         { { 8 8 8 } [ ] }
         { 8 [ ] }
-        [ throw-unknown-component-order ]
+        [ unknown-component-order ]
     } case >>bitmap ;
 
 : ifd-component-order ( ifd -- component-order component-type )
@@ -511,7 +511,7 @@ ERROR: unknown-component-order ifd ;
         { { 8 8 8 8 } [ RGBA ubyte-components ] }
         { { 8 8 8 } [ RGB ubyte-components ] }
         { 8 [ LA ubyte-components ] }
-        [ throw-unknown-component-order ]
+        [ unknown-component-order ]
     } case ;
 
 : handle-alpha-data ( ifd -- ifd )
@@ -519,7 +519,7 @@ ERROR: unknown-component-order ifd ;
         { extra-samples-associated-alpha-data [ ] }
         { extra-samples-unspecified-alpha-data [ ] }
         { extra-samples-unassociated-alpha-data [ ] }
-        [ throw-bad-extra-samples ]
+        [ bad-extra-samples ]
     } case ;
 
 : ifd>image ( ifd -- image )
index 511c2fa3f269c6f59a7e91b4c70fd49ba6742476..d79270cb56650d1ade2388ecd35ad465f6c4c31a 100644 (file)
@@ -29,7 +29,7 @@ IN: imap.tests
 ERROR: no-imap-test-host ;
 
 : get-test-host ( -- host )
-    \ imap-settings get-global host>> [ throw-no-imap-test-host ] unless* ;
+    \ imap-settings get-global host>> [ no-imap-test-host ] unless* ;
 
 : imap-test ( result quot -- )
     '[ \ imap-settings get-global _ with-imap-settings ] unit-test ; inline
index 77d7a0c73659346c1f11773a306172dacaf77373..2436af9b322c926ca84e28ef20daa71015fe1e76 100644 (file)
@@ -41,7 +41,7 @@ CONSTANT: IMAP4_SSL_PORT 993
     [ number>string ] map "," join ;
 
 : check-status ( ind data -- )
-    over "OK" = not [ throw-imap4-error ] [ 2drop ] if ;
+    over "OK" = not [ imap4-error ] [ 2drop ] if ;
 
 : read-response-chunk ( stop-expr -- item ? )
     read-?crlf ascii decode swap dupd pcre:findall
index 83611aaa7784f539066b73eeb69e73bd1bba7bd1..45ea18b12855130653f27e26d347f49e9793bdf2 100644 (file)
@@ -16,7 +16,7 @@ M: local-not-defined summary
 
 : >local-word ( string -- word )
     qualified-vocabs last words>> ?at
-    [ throw-local-not-defined ] unless ;
+    [ local-not-defined ] unless ;
 
 ERROR: invalid-op string ;
 
@@ -28,7 +28,7 @@ ERROR: invalid-op string ;
         { "/" [ [ / ] ] }
         { "%" [ [ mod ] ] }
         { "**" [ [ ^ ] ] }
-        [ throw-invalid-op ]
+        [ invalid-op ]
     } case ;
 
 GENERIC: infix-codegen ( ast -- quot/number )
index 13a9f1df0270dad77d39070b3d417b101c3be6a1..64206a7cd52fb77bc13b03dff2195b2e59757567 100644 (file)
@@ -14,7 +14,7 @@ IN: io.binary.fast
 ERROR: bad-length bytes n ;
 
 : check-length ( bytes n -- bytes n )
-    2dup [ length ] dip > [ throw-bad-length ] when ; inline
+    2dup [ length ] dip > [ bad-length ] when ; inline
 
 <<
 : be-range ( n -- range )
index c757d3c40ee8a0a2e47ac00702ef87a673b804e9..38a2a003f6139175b2c57a94fb5f50bbef5a3b14 100644 (file)
@@ -77,7 +77,7 @@ CONSTANT: ACL_EXTENDED_DENY  2
 ERROR: bad-acl-tag-t n ;
 
 : acl_tag_t>string ( n -- string )
-    dup 0 2 between? [ throw-bad-acl-tag-t ] unless
+    dup 0 2 between? [ bad-acl-tag-t ] unless
     { "undefined" "allow" "deny" } nth ;
 
 ! acl_flag_t
index 247e52b98ee4649c7b902c7ad7353c324d58bf8b..c26be9572ccafca5517c8832258b786c643b5aee 100644 (file)
@@ -77,7 +77,7 @@ PRIVATE>
 ERROR: acl-init-failed n ;
 
 :: n>new-acl ( n -- acl )
-    n acl_init dup [ n throw-acl-init-failed ] unless ;
+    n acl_init dup [ n acl-init-failed ] unless ;
 
 : new-acl ( -- acl ) 1 n>new-acl ; inline
 
index bc6c7c5ffe3d7cc6a51c738cad66473fd2b42ce8..2077c64610824db420d5764a2e17232f62011bf0 100644 (file)
@@ -33,7 +33,7 @@ ERROR: invalid-file-size n path ;
 
 : zero-file ( n path -- )
     {
-        { [ over 0 < ] [ throw-invalid-file-size ] }
+        { [ over 0 < ] [ invalid-file-size ] }
         { [ over 0 = ] [ nip touch-file ] }
         [ (zero-file) ]
     } cond ;
index 558402df940bea661a34094c506f03fd4b789303..5dc03fae7281962f88abd8bc8685da4017ae778e 100644 (file)
@@ -28,7 +28,7 @@ ERROR: invalid-ipv4 str ;
         { 2 [ 1 cut { 0 0 } glue ] }
         { 3 [ 2 cut { 0 } glue ] }
         { 4 [ ] }
-        [ drop throw-invalid-ipv4 ]
+        [ drop invalid-ipv4 ]
     } case bubble nip ; inline
 
 PRIVATE>
index df9c19beb8683137f30ebbf35430d457e0250440..41c3296eee853e89b40e68fcda73842ecff99ef6 100644 (file)
@@ -7,7 +7,7 @@ IN: machine-learning.rebalancing
 ERROR: probability-sum-not-one seq ;
 
 : check-probabilities ( seq -- seq )
-    dup sum 1.0 .00000000001 ~ [ throw-probability-sum-not-one ] unless ;
+    dup sum 1.0 .00000000001 ~ [ probability-sum-not-one ] unless ;
 
 : equal-probabilities ( n -- array )
     dup recip <array> ; inline
index 2388c42ff765a6b63b500bbb235327f575582f8e..65157c7914b039bf7c67d82c876fa804874943bc 100644 (file)
@@ -833,7 +833,7 @@ ERROR: not-fat-binary ;
     fat_header memory>struct dup magic>> {
         { FAT_MAGIC [ ] }
         { FAT_CIGAM [ ] }
-        [ 2drop throw-not-fat-binary ]
+        [ 2drop not-fat-binary ]
     } case dup
     [ >c-ptr fat_header heap-size swap <displaced-alien> ]
     [ nfat_arch>> 4 >be le> ] bi
index 3a0b4ad774468fde3d512525243bede3d45894aa..b7a73c48320deaac87d6e2bfd60695c8728f0c88 100644 (file)
@@ -21,7 +21,7 @@ HOOK: handle-client-disconnect managed-server ( -- )
 
 ERROR: already-logged-in username ;
 
-M: managed-server handle-already-logged-in throw-already-logged-in ;
+M: managed-server handle-already-logged-in already-logged-in ;
 M: managed-server handle-client-join ;
 M: managed-server handle-client-disconnect ;
 
@@ -44,7 +44,7 @@ ERROR: no-such-client username ;
 PRIVATE>
 
 : send-client ( seq username -- )
-    clients ?at [ throw-no-such-client ] [ (send-client) ] if ;
+    clients ?at [ no-such-client ] [ (send-client) ] if ;
 
 : send-everyone ( seq -- )
     [ client-streams ] dip '[ _ (send-client) ] each ;
index 2bfda23a750e87e56e0a2ee4a816f72236225e6b..d01dff72d5222d49f4e13054fe516eb1dd700fff 100644 (file)
@@ -13,7 +13,7 @@ IN: mason.common
 ERROR: no-host-name ;
 
 : short-host-name ( -- string )
-    host-name "." split1 drop [ throw-no-host-name ] unless* ;
+    host-name "." split1 drop [ no-host-name ] unless* ;
 
 SYMBOL: current-git-id
 
index 29465ffd1a3aa704a0c6b8966b2d339bb4922709..9d74bdc75016d66ce42db527f7396bc9ec68350b 100644 (file)
@@ -23,7 +23,7 @@ DERIVATIVE: abs
     [ 0 <=>
         {
             { +lt+ [ neg ] }
-            { +eq+ [ 0 \ abs throw-undefined-derivative ] }
+            { +eq+ [ 0 \ abs undefined-derivative ] }
             { +gt+ [ ] }
         } case
     ] ;
index 86b12231e1c126b7d9a9f0cd54d243b337529017..817fa89d9a9845bc1a2f5949f13aee3691d8c740 100644 (file)
@@ -32,7 +32,7 @@ INSTANCE: missing immutable-sequence
 ERROR: not-a-square-matrix matrix ;
 
 : check-square-matrix ( matrix -- matrix )
-    dup square-matrix? [ throw-not-a-square-matrix ] unless ; inline
+    dup square-matrix? [ not-a-square-matrix ] unless ; inline
 
 PRIVATE>
 
index d7cdfe47c289487f11ebd1e0470154e01d76bd1d..b887b55a5345fe405a7caf2624625721dd96dfe2 100644 (file)
@@ -39,10 +39,10 @@ PRIVATE>
 ERROR: not-enough-data ;
 
 : fft ( seq -- seq' )
-    [ throw-not-enough-data ] [ f (fft) ] if-empty ;
+    [ not-enough-data ] [ f (fft) ] if-empty ;
 
 : ifft ( seq -- seq' )
-    [ throw-not-enough-data ] [ t (fft) ] if-empty ;
+    [ not-enough-data ] [ t (fft) ] if-empty ;
 
 : correlate ( x y -- z )
     [ fft ] [ reverse fft ] bi* v* ifft ;
index 5561fdad9c43d1aaad560cc6722767d73633235d..8ff2a03de3499dbeec1b8621d756bc13f833a8dc 100644 (file)
@@ -112,14 +112,14 @@ TUPLE: request cmd key val extra opaque cas ;
 
 : check-status ( header -- )
     [ 5 ] dip nth {
-        { NOT_FOUND    [ throw-key-not-found     ] }
-        { EXISTS       [ throw-key-exists        ] }
-        { TOO_LARGE    [ throw-value-too-large   ] }
-        { INVALID_ARGS [ throw-invalid-arguments ] }
-        { NOT_STORED   [ throw-item-not-stored   ] }
-        { NOT_NUMERIC  [ throw-value-not-numeric ] }
-        { UNKNOWN_CMD  [ throw-unknown-command   ] }
-        { MEMORY       [ throw-out-of-memory     ] }
+        { NOT_FOUND    [ key-not-found     ] }
+        { EXISTS       [ key-exists        ] }
+        { TOO_LARGE    [ value-too-large   ] }
+        { INVALID_ARGS [ invalid-arguments ] }
+        { NOT_STORED   [ item-not-stored   ] }
+        { NOT_NUMERIC  [ value-not-numeric ] }
+        { UNKNOWN_CMD  [ unknown-command   ] }
+        { MEMORY       [ out-of-memory     ] }
         [ drop ]
     } case ;
 
index 778dd8e7fb84101ff060163d7d7210cc2f3932fc..d635b4d83c8c16e5774ed0dd488f7004f7fb2bf0 100644 (file)
@@ -21,7 +21,7 @@ M: pile dispose
 : pile-alloc ( pile size -- alien )
     [
         [ [ ] [ size>> ] [ offset>> ] tri ] dip +
-        < [ throw-not-enough-pile-space ] [ drop ] if
+        < [ not-enough-pile-space ] [ drop ] if
     ] [
         drop [ offset>> ] [ underlying>> ] bi <displaced-alien>
     ] [
index a874da893d8844fdf37f09091b719f82048670f1..54c26dfab46320c32613604890cf690b1514529f 100644 (file)
@@ -22,7 +22,7 @@ ERROR: bad-location str ;
         { 3 [ first3 [ string>number ] tri@ 60.0 / + 60.0 / + ] }
         { 2 [ first2 [ string>number ] bi@ 60.0 / + ] }
         { 1 [ first string>number ] }
-        [ drop throw-bad-location ]
+        [ drop bad-location ]
     } case ;
 
 : string>longitude ( str -- lon/f )
index 431f250a2cd3abcbd053f41168735a1abed116ac..a3ac4ebb136715a01cdfedc0f4650b16462fe1eb 100644 (file)
@@ -26,7 +26,7 @@ ERROR: not-an-integer x ;
     [ "-" ?head swap ] dip
     [ [ "0" ] when-empty ] bi@
     [
-        [ dup string>number [ nip ] [ throw-not-an-integer ] if* ] bi@
+        [ dup string>number [ nip ] [ not-an-integer ] if* ] bi@
     ] keep length
     10^ / + swap [ neg ] when ;
 
index 3b2ce203bc0cb4c689a9d85c65c5d10c7e119790..30096bdaeb32d90bbaa084ee05f414634233249e 100644 (file)
@@ -150,7 +150,7 @@ ERROR: mongod-connection-error address message ;
         open-connection [ authenticate-connection ] keep
     ] [
         drop nip address>> "Could not open connection to mongod"
-        throw-mongod-connection-error
+        mongod-connection-error
     ] recover ;
 
 : mdb-close ( mdb-connection -- )
index a0ca3fd54af527fc9d982b3f3d5d40bfaece1ae0..bfad87b739f7c75ada9f2fae5431f8a97d008b71 100644 (file)
@@ -267,7 +267,7 @@ M: mdb-collection validate.
 <PRIVATE
 
 : send-message-check-error ( message -- )
-    send-message lasterror [ throw-mdb-error ] when* ;
+    send-message lasterror [ mdb-error ] when* ;
 
 PRIVATE>
 
index db86cdb32cbdb3a0d4d4a669002c552c7a023d10..86c599137be8de739fdf1745fbabf664c7fc5f3e 100755 (executable)
@@ -160,7 +160,7 @@ CONSTANT: beep-freq 880
             { dash-char [ dash ] }
             { word-gap-char [ intra-char-gap ] }
             { unknown-char [ intra-char-gap ] }
-            [ throw-no-morse-ch ]
+            [ no-morse-ch ]
         } case
     ] interleave ;
 
index 1519d43859e51783d095f5aaf12e67f4f3833363..021a96c3bb5e1895755b013f611ed080366d98e2 100644 (file)
@@ -66,7 +66,7 @@ ERROR: unknown-format n ;
         { [ dup 0xc7 = ] [ drop read1 read-ext ] }
         { [ dup 0xc8 = ] [ drop 2 read be> read-ext ] }
         { [ dup 0xc9 = ] [ drop 4 read be> read-ext ] }
-        [ throw-unknown-format ]
+        [ unknown-format ]
     } cond ;
 
 ERROR: cannot-convert obj ;
@@ -89,7 +89,7 @@ M: integer write-msgpack
             { [ dup 0xffff <= ] [ 0xcd write1 2 >be write ] }
             { [ dup 0xffffffff <= ] [ 0xce write1 4 >be write ] }
             { [ dup 0xffffffffffffffff <= ] [ 0xcf write1 8 >be write ] }
-            [ throw-cannot-convert ]
+            [ cannot-convert ]
         } cond
     ] [
         {
@@ -98,7 +98,7 @@ M: integer write-msgpack
             { [ dup -0x8000 >= ] [ 0xd1 write1 2 >be write ] }
             { [ dup -0x80000000 >= ] [ 0xd2 write1 4 >be write ] }
             { [ dup -0x8000000000000000 >= ] [ 0xd3 write1 8 >be write ] }
-            [ throw-cannot-convert ]
+            [ cannot-convert ]
         } cond
     ] if ;
 
@@ -111,7 +111,7 @@ M: string write-msgpack
         { [ dup 0xff <= ] [ 0xd9 write1 write1 ] }
         { [ dup 0xffff <= ] [ 0xda write1 2 >be write ] }
         { [ dup 0xffffffff <= ] [ 0xdb write1 4 >be write ] }
-        [ throw-cannot-convert ]
+        [ cannot-convert ]
     } cond output-stream get utf8 encode-string ;
 
 M: byte-array write-msgpack
@@ -119,7 +119,7 @@ M: byte-array write-msgpack
         { [ dup 0xff <= ] [ 0xc4 write1 write1 ] }
         { [ dup 0xffff <= ] [ 0xc5 write1 2 >be write ] }
         { [ dup 0xffffffff <= ] [ 0xc6 write1 4 >be write ] }
-        [ throw-cannot-convert ]
+        [ cannot-convert ]
     } cond write ;
 
 : write-array-header ( n -- )
@@ -127,7 +127,7 @@ M: byte-array write-msgpack
         { [ dup 0xf <= ] [ 0x90 bitor write1 ] }
         { [ dup 0xffff <= ] [ 0xdc write1 2 >be write ] }
         { [ dup 0xffffffff <= ] [ 0xdd write1 4 >be write ] }
-        [ throw-cannot-convert ]
+        [ cannot-convert ]
     } cond ;
 
 M: sequence write-msgpack
@@ -138,7 +138,7 @@ M: sequence write-msgpack
         { [ dup 0xf <= ] [ 0x80 bitor write1 ] }
         { [ dup 0xffff <= ] [ 0xde write1 2 >be write ] }
         { [ dup 0xffffffff <= ] [ 0xdf write1 4 >be write ] }
-        [ throw-cannot-convert ]
+        [ cannot-convert ]
     } cond ;
 
 M: assoc write-msgpack
index 0ff11df21357cd16ce01ec65eecff54d57b9c3f2..aa62a4391d78dda9e6be8f59d81c0b3f2cac47d1 100644 (file)
@@ -53,7 +53,7 @@ ERROR: invalid-perlin-noise-table table ;
 
 : validate-table ( table -- table )
     dup { [ byte-array? ] [ length 512 >= ] } 1&&
-    [ throw-invalid-perlin-noise-table ] unless ;
+    [ invalid-perlin-noise-table ] unless ;
 
 ! XXX doesn't work when v is nan or |v| >= 2^31
 : floor-vector ( v -- v' )
index f9b7dde26205c76ddf14759a3d8ffc9857039ce8..4f4e5fb7e18fc005e78cd0fe0b26bee49c78eb11 100644 (file)
@@ -21,7 +21,7 @@ __kernel void square(
 
 ERROR: cl-error err ;
 : cl-success ( err -- )
-    dup CL_SUCCESS = [ drop ] [ throw-cl-error ] if ;
+    dup CL_SUCCESS = [ drop ] [ cl-error ] if ;
 
 :: cl-string-array ( str -- alien )
     str ascii encode 0 suffix :> str-buffer
index 2a9819c642d7be7deb21e87544e868a4402f4da7..8325be9a9cf169765f4e7fdaa95026c33a6185c3 100644 (file)
@@ -13,10 +13,10 @@ SPECIALIZED-ARRAYS: void* char size_t ;
 ERROR: cl-error err ;
 
 : cl-success ( err -- )
-    dup CL_SUCCESS = [ drop ] [ throw-cl-error ] if ; inline
+    dup CL_SUCCESS = [ drop ] [ cl-error ] if ; inline
 
 : cl-not-null ( err -- )
-    dup f = [ throw-cl-error ] [ drop ] if ; inline
+    dup f = [ cl-error ] [ drop ] if ; inline
 
 : info-data-size ( handle name info-quot -- size_t )
     [ 0 f 0 size_t <ref> ] dip [ call cl-success ] 2keep drop size_t deref ; inline
@@ -354,7 +354,7 @@ M: cl-filter-linear  filter-mode-constant drop CL_FILTER_LINEAR ;
     {
         { CL_BUILD_PROGRAM_FAILURE [
             program-handle device id>> program-build-log program-handle
-            clReleaseProgram cl-success throw-cl-error f ] }
+            clReleaseProgram cl-success cl-error f ] }
         { CL_SUCCESS [ cl-program new-disposable program-handle >>handle ] }
         [ program-handle clReleaseProgram cl-success cl-success f ]
     } case ;
index a4e0b15b9b2d5a6eb1c7c57d4b32307df9ef11f3..13814015a847a224d8a9e8c4e0cde3a378edb5f9 100644 (file)
@@ -25,7 +25,7 @@ ERROR: no-pair-method a b generic ;
 
 : pair-generic-definition ( word -- def )
     [ sorted-pair-methods [ first2 pair-method-cond ] map ]
-    [ [ throw-no-pair-method ] curry suffix ] bi 1quotation
+    [ [ no-pair-method ] curry suffix ] bi 1quotation
     [ 2dup [ class-of ] compare +gt+ eq? ?swap ] [ cond ] surround ;
 
 : make-pair-generic ( word -- )
index 4835248cc6e660815f9a86806c3cfd06e3de943d..201b91e5e7b3f918a88a19731800a48d4ef53c9d 100644 (file)
@@ -31,7 +31,7 @@ M: pair set-at
 ERROR: cannot-delete-key pair ;
 
 M: pair delete-at
-    [ throw-cannot-delete-key ] [
+    [ cannot-delete-key ] [
         [ delete-at ] [ 2drop ] if-hash
     ] if-key ; inline
 
index cad0bd4875f434c131158ae05fa7418407290fd7..e17eeaa71e611b1a2ccf0aacb1c2c53f0497a78c 100644 (file)
@@ -31,7 +31,7 @@ ERROR: pcre-error value ;
     ] [ 2drop f ] if* ;
 
 : check-bad-option ( err value what -- value )
-    rot 0 = [ drop ] [ throw-bad-option ] if ;
+    rot 0 = [ drop ] [ bad-option ] if ;
 
 : pcre-config ( what -- value )
     [
@@ -81,7 +81,7 @@ CONSTANT: default-opts flags{ PCRE_UTF8 PCRE_UCP }
     default-opts { c-string int } [ f pcre_compile ] with-out-parameters ;
 
 : <pcre> ( expr -- pcre )
-    dup (pcre) 2array swap [ 2nip ] [ throw-malformed-regexp ] if* ;
+    dup (pcre) 2array swap [ 2nip ] [ malformed-regexp ] if* ;
 
 : <pcre-extra> ( pcre -- pcre-extra )
     0 { c-string } [ pcre_study ] with-out-parameters drop ;
@@ -104,7 +104,7 @@ CONSTANT: empty-match-opts flags{ PCRE_NOTEMPTY_ATSTART PCRE_ANCHORED }
         [ ofs>> ]
         [ exec-opts>> ]
     } cleave exec over dup -1 < [
-        PCRE_ERRORS number>enum throw-pcre-error
+        PCRE_ERRORS number>enum pcre-error
     ] [
         -1 = [
             2drop dup exec-opts>> 0 =
index 9979a3be5e4705709e7e342b3320241c922c17ec..50d0feebd14a60a951aa2d34c18bcb4a9e2a1d25 100644 (file)
@@ -198,7 +198,7 @@ ERROR: no-card card deck ;
 
 : draw-specific-card ( card deck -- card )
     [ >ckf ] dip
-    2dup index [ swap remove-nth! drop ] [ throw-no-card ] if* ;
+    2dup index [ swap remove-nth! drop ] [ no-card ] if* ;
 
 : start-hands ( seq -- seq' deck )
     <deck> [ '[ [ _ draw-specific-card ] map ] map ] keep ;
@@ -248,7 +248,7 @@ ERROR: bad-suit-symbol ch ;
         { CHAR: D CHAR: D }
         { CHAR: H CHAR: H }
         { CHAR: C CHAR: C }
-    } ?at [ throw-bad-suit-symbol ] unless ;
+    } ?at [ bad-suit-symbol ] unless ;
 
 : card> ( string -- card )
     1 over [ symbol>suit ] change-nth >ckf ;
index 4d856b82c092044a49b962170ff3aa8f30ebe184..b397a0b28716145dd9a757151928d3ad9cedbd42 100644 (file)
@@ -7,12 +7,12 @@ IN: progress-bars
 ERROR: invalid-percent x ;
 
 : check-percent ( x -- x )
-    dup 0 1 between? [ throw-invalid-percent ] unless ;
+    dup 0 1 between? [ invalid-percent ] unless ;
 
 ERROR: invalid-length x ;
 
 : check-length ( x -- x )
-    dup { [ 0 > ] [ integer? ] } 1&& [ throw-invalid-length ] unless ;
+    dup { [ 0 > ] [ integer? ] } 1&& [ invalid-length ] unless ;
 
 : (make-progress-bar) ( percent len completed-ch pending-ch -- string )
     [ [ * >integer ] keep over - ] 2dip
index 0121bf8cf1b277174a11b766a1fb583d8e184f53..5b4f0b328324b0d26f9e66459611c7dc538439f1 100644 (file)
@@ -24,7 +24,7 @@ ERROR: redis-error message ;
     <redis-response> ;
 
 : handle-error ( string -- * )
-    throw-redis-error ;
+    redis-error ;
 
 PRIVATE>
 
index 8fe2473a4a729caf154057058e6e3f406af9de62..b6eefd214785192277c39d659655c6e38248bd0a 100644 (file)
@@ -68,7 +68,7 @@ ERROR: unsupported-resolv.conf-option string ;
         { [ "rotate" ?head ] [ drop t >>rotate? ] }
         { [ "no-check-names" ?head ] [ drop t >>no-check-names? ] }
         { [ "inet6" ?head ] [ drop t >>inet6? ] }
-        [ throw-unsupported-resolv.conf-option ]
+        [ unsupported-resolv.conf-option ]
     } cond drop ;
 
 ERROR: unsupported-resolv.conf-line string ;
@@ -81,7 +81,7 @@ ERROR: unsupported-resolv.conf-line string ;
         { [ "search" ?head ] [ parse-search ] }
         { [ "sortlist" ?head ] [ parse-sortlist ] }
         { [ "options" ?head ] [ parse-option ] }
-        [ throw-unsupported-resolv.conf-line ]
+        [ unsupported-resolv.conf-line ]
     } cond ;
 
 PRIVATE>
index c6c74bbd46d594b48b1cd9ba7e6b05e87dff09a4..e32503e76bf6ae4423c2d3bc717619222a639ee2 100644 (file)
@@ -36,7 +36,7 @@ PREDICATE: role < mixin-class
 
 : check-for-slot-overlap ( class roles-and-superclass slots -- )
     [ [ role-or-tuple-slot-names ] map concat ] [ slot-names ] bi* append
-    duplicates dup empty? [ 2drop ] [ throw-role-slot-overlap ] if ;
+    duplicates dup empty? [ 2drop ] [ role-slot-overlap ] if ;
 
 : roles>slots ( roles-and-superclass slots -- superclass slots' )
     [
@@ -44,7 +44,7 @@ PREDICATE: role < mixin-class
         dup length {
             { 0 [ drop tuple ] }
             { 1 [ first ] }
-            [ drop throw-multiple-inheritance-attempted ]
+            [ drop multiple-inheritance-attempted ]
         } case
         swap [ role-slots ] map concat
     ] dip append ;
index 142904e008b56010e51a7b486d8871c9a78aa91d..0790cde7d993aefea4c7ae4877675d7d1daec68b 100644 (file)
@@ -13,7 +13,7 @@ classes [ H{ } clone ] initialize
 ERROR: no-class name ;
 
 : lookup-class ( class -- class )
-    classes get ?at [ throw-no-class ] unless ;
+    classes get ?at [ no-class ] unless ;
 
 : define-class ( class superclass ivars -- class-word )
     [ create-class ] [ lookup-class ] [ ] tri*
index 42ffccb400ad01f3d27d5d185b794d3d3c8dfb8b..3a7d29e6dac5728e6b25e7d7546853b000ab813d 100644 (file)
@@ -47,7 +47,7 @@ M: bad-identifier summary drop "Unknown identifier" ;
         [ local-reader ]
         [ ivar-reader ]
         [ drop class-name ]
-        [ drop throw-bad-identifier ]
+        [ drop bad-identifier ]
     } 2|| ;
 
 : local-writer ( name lexenv -- local )
@@ -63,5 +63,5 @@ M: bad-identifier summary drop "Unknown identifier" ;
     {
         [ local-writer ]
         [ ivar-writer ]
-        [ drop throw-bad-identifier ]
+        [ drop bad-identifier ]
     } 2|| ;
index ae58d6c0b9fee1e30519539dfa350685a3181a87..6de20afc6d33aaff1713ce2fbce4b07ccd33de73 100644 (file)
@@ -11,7 +11,7 @@ IN: smalltalk.parser
 ERROR: bad-number str ;
 
 : check-number ( str -- n )
-    >string dup string>number [ ] [ throw-bad-number ] ?if ;
+    >string dup string>number [ ] [ bad-number ] ?if ;
 
 EBNF: parse-smalltalk
 
index c8f2c3212a69221034f527d3b7215e9372bedb53..1417c07eeddfe2207f4724ca340031248347877c 100644 (file)
@@ -74,7 +74,7 @@ TYPED: checksum-header ( seq: byte-array -- n )
         [
             binary [ read-tar-header ] with-byte-reader
             dup checksum>>
-        ] dip = [ throw-checksum-error ] unless
+        ] dip = [ checksum-error ] unless
     ] if ;
 
 ERROR: unknown-typeflag ch ;
index 181a891ea296903d6aa47fb19554e034be6fd596..4541a15eca34c04cad80305d4bbb701921d049d5 100644 (file)
@@ -12,7 +12,7 @@ ERROR: fica-base-unknown ;
         { 2009 106800 }
         { 2008 102000 }
         { 2007  97500 }
-    } at [ throw-fica-base-unknown ] unless* ;
+    } at [ fica-base-unknown ] unless* ;
 
 : fica-tax ( salary w4 -- x )
     year>> fica-base-rate min fica-tax-rate * ;
index 4093e41e932cd6a537777c0a476e620d1b57ed01..3372a07e8277541bca715ba555d67347be4ece36 100644 (file)
@@ -18,7 +18,7 @@ CONSTANT: MAGIC 0o432
 ERROR: bad-magic ;
 
 : check-magic ( n -- )
-    MAGIC = [ throw-bad-magic ] unless ;
+    MAGIC = [ bad-magic ] unless ;
 
 TUPLE: terminfo-header names-bytes boolean-bytes #numbers
 #strings string-bytes ;
index 02a81ee96c8f0bfae0ba591bea7fc4e53c3a36b4..998353eab4bccb8e85a8a25179a0ca83342013c0 100644 (file)
@@ -27,7 +27,7 @@ PACKED-STRUCT: ttinfo
 ERROR: bad-magic ;
 
 : check-magic ( -- )
-    4 read "TZif" sequence= [ throw-bad-magic ] unless ;
+    4 read "TZif" sequence= [ bad-magic ] unless ;
 
 TUPLE: tzfile header transition-times local-times types abbrevs
 leaps is-std is-gmt ;
index 51ada98c935ee1f0e62da1ef7e5bacbc7f012a4d..6bc2242074c836cbbeb071f8204f3e9750d266cf 100644 (file)
@@ -34,7 +34,7 @@ M: dimensions-not-equal summary drop "Dimensions do not match" ;
 
 : check-dimensions ( d d -- )
     [ dimensions 2array ] same?
-    [ throw-dimensions-not-equal ] unless ;
+    [ dimensions-not-equal ] unless ;
 
 : 2values ( dim dim -- val val ) [ value>> ] bi@ ;
 
index d1020037d92041edaefe340cf9fb1f6702fa2599..111ea991592d9b2a16fca566b27ac8dbe2dab5b9 100644 (file)
@@ -22,7 +22,7 @@ M: no-such-state summary drop "No such state" ;
 
 MEMO: string>state ( string -- state )
     dup states [ name>> = ] with find nip
-    [ ] [ throw-no-such-state ] ?if ;
+    [ ] [ no-such-state ] ?if ;
 
 TUPLE: city
 first-zip name state latitude longitude gmt-offset dst-offset ;
index f30b3da56b81581c622454e27e2886bb766f64c7..c1d23e0d9ac7c000e240ca401d97c822cd14d45d 100644 (file)
@@ -11,7 +11,7 @@ IN: uu
 ERROR: bad-length seq ;
 
 : check-length ( seq -- seq )
-    dup length 45 > [ throw-bad-length ] when ; inline
+    dup length 45 > [ bad-length ] when ; inline
 
 :: binary>ascii ( seq -- seq' )
     0 :> char!
@@ -41,7 +41,7 @@ ERROR: illegal-character ch ;
 
 : check-illegal-character ( ch -- ch )
     dup { [ CHAR: \s < ] [ CHAR: \s 64 + > ] } 1||
-    [ throw-illegal-character ] when ;
+    [ illegal-character ] when ;
 
 :: ascii>binary ( seq -- seq' )
     0 :> char!
index 1792fdc3cb36b6b48525627613411f3f702d5bf1..8e1c30fae34d51a309183daa8480b30ce2be3a5a 100644 (file)
@@ -23,6 +23,6 @@ ERROR: git-revision-not-found path ;
 : use-vocab-rev ( vocab-name rev -- )
     [ create-vocab vocab-source-path dup ] dip git-object-id
     [ [ input-stream get swap parse-stream call( -- ) ] with-git-object-stream ]
-    [ throw-git-revision-not-found ] if* ;
+    [ git-revision-not-found ] if* ;
 
 SYNTAX: USE-REV: scan-token scan-token use-vocab-rev ;
index 09d2908c77a30389897d248b7e38e7f2213b633b..058ead1e53927d0098e697d01f6b7d7fb92dc094 100644 (file)
@@ -22,7 +22,7 @@ ERROR: yaml-no-document ;
 <PRIVATE
 
 : yaml-initialize-assert-ok ( ? -- )
-    [ throw-libyaml-initialize-error ] unless ;
+    [ libyaml-initialize-error ] unless ;
 
 : (libyaml-parser-error) ( parser -- )
     {
@@ -33,10 +33,10 @@ ERROR: yaml-no-document ;
         [ problem_mark>> ]
         [ context>> ]
         [ context_mark>> ]
-    } cleave [ clone ] 7 napply throw-libyaml-parser-error ;
+    } cleave [ clone ] 7 napply libyaml-parser-error ;
 
 : (libyaml-emitter-error) ( emitter -- )
-    [ error>> ] [ problem>> ] bi [ clone ] bi@ throw-libyaml-emitter-error ;
+    [ error>> ] [ problem>> ] bi [ clone ] bi@ libyaml-emitter-error ;
 
 : yaml-parser-assert-ok ( ? parser -- )
     swap [ drop ] [ (libyaml-parser-error) ] if ;
@@ -60,7 +60,7 @@ SYMBOL: anchors
 
 : assert-anchor-exists ( anchor -- )
     anchors get 2dup at* nip
-    [ 2drop ] [ throw-yaml-undefined-anchor ] if ;
+    [ 2drop ] [ yaml-undefined-anchor ] if ;
 
 : deref-anchor ( event -- obj )
     data>> alias>> anchor>>
@@ -182,7 +182,7 @@ DEFER: parse-mapping
 : expect-event ( parser event type -- )
     [
         [ next-event type>> ] dip 2dup =
-        [ 2drop ] [ 1array throw-yaml-unexpected-event ] if
+        [ 2drop ] [ 1array yaml-unexpected-event ] if
     ] with-destructors ;
 
 ! Same as 'with', but for combinators that
@@ -257,7 +257,7 @@ M: assoc apply-merge-keys
         parser event next-event type>> {
             { YAML_DOCUMENT_START_EVENT [ t ] }
             { YAML_STREAM_END_EVENT [ f ] }
-            [ { YAML_DOCUMENT_START_EVENT YAML_STREAM_END_EVENT } throw-yaml-unexpected-event ]
+            [ { YAML_DOCUMENT_START_EVENT YAML_STREAM_END_EVENT } yaml-unexpected-event ]
         } case
     ] with-destructors [
         parser event parse-yaml-doc t
@@ -283,7 +283,7 @@ PRIVATE>
     [
         init-parser
         [ YAML_STREAM_START_EVENT expect-event ]
-        [ ?parse-yaml-doc [ throw-yaml-no-document ] unless ] 2bi
+        [ ?parse-yaml-doc [ yaml-no-document ] unless ] 2bi
     ] with-destructors ;
 
 : yaml-docs> ( str -- arr )
index b92e95f85adc6c1b7444eb2b660a635dd1a664d2..04c2299d09449768d5dd183547b0afc8046de268 100644 (file)
@@ -13,7 +13,7 @@ TUPLE: zmq-error n string ;
     zmq_errno dup zmq_strerror zmq-error boa throw ; inline
 
 : check-zmq-error ( retval -- )
-    [ throw-zmq-error ] unless-zero ; inline
+    [ zmq-error ] unless-zero ; inline
 
 : zmq-version ( -- version )
     { int int int } [ zmq_version ] with-out-parameters 3array ;
@@ -62,7 +62,7 @@ TUPLE: zmq-socket underlying ;
 
 : <zmq-socket> ( context type -- socket )
     [ underlying>> ] dip zmq_socket
-    dup [ throw-zmq-error ] unless
+    dup [ zmq-error ] unless
     zmq-socket boa ;
 
 M: zmq-socket dispose
@@ -90,11 +90,11 @@ M: zmq-socket zmq-setopt
 
 : zmq-sendmsg ( socket msg flags -- )
     [ [ underlying>> ] bi@ ] dip zmq_sendmsg
-    0 < [ throw-zmq-error ] when ;
+    0 < [ zmq-error ] when ;
 
 : zmq-recvmsg ( socket msg flags -- )
     [ [ underlying>> ] bi@ ] dip zmq_recvmsg
-    0 < [ throw-zmq-error ] when ;
+    0 < [ zmq-error ] when ;
 
 : zmq-send ( socket byte-array flags -- )
     [ byte-array>zmq-message ] dip
index 7c1b472e42f54649a5cada5ebe2e26850b66e134..19368e32ab597633b85900aa951655a5dd80ec74 100644 (file)
@@ -154,7 +154,7 @@ ERROR: zone-not-found name ;
 
 : find-zone ( string -- rules )
     raw-zone-map
-    [ last ] assoc-map ?at [ throw-zone-not-found ] unless ;
+    [ last ] assoc-map ?at [ zone-not-found ] unless ;
 
 : find-zone-rules ( string -- zone rules )
     find-zone dup rules/save>> find-rules ;