diff options
| author | kitty <nepeta@canaglie.net> | 2026-04-13 01:10:01 +1000 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-04-13 01:10:01 +1000 |
| commit | 64984f5987264fb06587fb669801f8c6f4fdcc31 (patch) | |
| tree | 01ad85ffa758ab80494c1bd78b55a85b719c5e3e /readme.md | |
| parent | 4a865170411e49924c6bc95fe871d32d4a40ddbb (diff) | |
un-standardise `abort"`
i like it better this way
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -58,9 +58,9 @@ have a closing bracket: ). ### `(0handler) ( -- )` the very early error handler, which simply quits the program. -### `(abort") ( ? -- )` +### `(abort") ( a u -- )` perform the runtime actions of `abort"`: -check for non-zero and print and abort, or do nothing. +print string to error and abort. ### `(create) ( -- )` the default behaviour of a word made by `create`, @@ -282,8 +282,8 @@ duplicate the two topmost values on the stack. call the error handler (the address of which is in the variable `handler`) -### `abort" ( ? -- ) IMMEDIATE COMPILE-ONLY` -if `?` is non-zero, write the message that follows (terminated by `"`) +### `abort" ( -- ) IMMEDIATE COMPILE-ONLY` +write the message that follows (terminated by `"`) to standard out then call the error handler. (the address of which is in the variable `handler`) @@ -836,3 +836,4 @@ but it diverges in a few notable places: (128 bit integer arithmetic does not seem all that useful to me) - the dynamic allocation `free` word requires a length. this is because munmap requires a length. +- `abort"` does not take a flag and always executes. |
