guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: while break and continue


From: Marius Vollmer
Subject: Re: while break and continue
Date: 02 Jun 2003 01:58:35 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Kevin Ryde <address@hidden> writes:

> I was going to add some words to the manual about break and continue
> in a while loop, but noticed continue doesn't do what I might have
> thought.

Oops.  Yes, that is unexpected.  I think your solution is essentially
correct, except that you shouldn't use procedure->memoizing-macro (use
define-macro instead) and that you inject literal procedures into the
expanded code.  This is not good style since the procedures are
created in the compile time environment but used in the run-time
environment.  A compiler might not like this.

This old post might be interesting as well, but the 'tagbody'
implementation in it is not properly tail recursive:

  http://sources.redhat.com/ml/guile/2000-07/msg00339.html

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]