This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: More tagbody
- From: Bruce Lewis <brlewis at ALUM dot MIT dot EDU>
- To: "Are Meisfjord" <are at meisfjord dot com>
- Cc: per at bothner dot com, kawa at sources dot redhat dot com
- Date: 03 Apr 2003 11:08:01 -0500
- Subject: Re: More tagbody
- References: <255730-2200344383017851@meisfjord.com>
"Are Meisfjord" <are at meisfjord dot com> writes:
> The set! is there simply because it is in the original example from
> Franz (incf val 16). I don't know why they put it in there as it will
> never be reached during execution, as you noticed.
They put it in to illustrate that code following "go" will never be
reached. A more realistic example might be
(if expr (go somewhere))
(set! val 42)
For this, you could rewrite "somewhere" to be a procedure and do
(if expr
(somewhere)
(set! val 42))
No need for tags, continuations, etc.
--
<brlewis at [(if (brl-related? message) ; Bruce R. Lewis
"users.sourceforge.net" ; http://brl.codesimply.net/
"alum.mit.edu")]>