This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: tagbody
- From: Bruce Lewis <brlewis at ALUM dot MIT dot EDU>
- To: "Are Meisfjord" <are at meisfjord dot com>
- Cc: kawa at sources dot redhat dot com
- Date: 02 Apr 2003 11:16:15 -0500
- Subject: Re: tagbody
- References: <182930-2200343285243468@meisfjord.com>
"Are Meisfjord" <are at meisfjord dot com> writes:
> I then found out that the proper way of implementing tagbody in
> Scheme probably is to use continuations, but I also read that Kawa
> implements continuations using exceptions so I guess the difference
> wouldn't be substantial.
Right. Also, Kawa's continuations can only be invoked once, so most
tagbody examples won't work. I would suggest translating the code by
hand into a letrec with function names corresponding to the tags in the
tagbody. Flow will probably be clearer that way anyway.
IIUC, Kawa will be able to replace function calls with jumps, so
performance should go way up.
--
<brlewis at [(if (brl-related? message) ; Bruce R. Lewis
"users.sourceforge.net" ; http://brl.codesimply.net/
"alum.mit.edu")]>