Re: PreScheme exception handling
Michael Sperber <[email protected]> Sun, 29 Nov 2015 10:33:21 +0100
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
Thomas Hintz <[email protected]> writes: > On Sun, Nov 22, 2015, at 08:38 AM, Michael Sperber wrote: >> >> Thomas Hintz <[email protected]> writes: >> >> >> I'd start by trying to declare the setjmp be a simple C primop. Or did >> >> you already do that? >> >> How did you make setjmp be available to PreScheme code? > > (external setjmp "setjmp" (=> (address) integer)) > (external longjmp "longjmp" (=> (address integer) integer) You really need to at least declare these as PreScheme primitives, as they have control effects. (See ps-compiler(prescheme/primop.) -- Regards, Mike