[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Special variables to relax boxing
From: |
Daniel Hartwig |
Subject: |
Re: Special variables to relax boxing |
Date: |
Sat, 23 Mar 2013 08:18:41 +0800 |
On 23 March 2013 06:33, Stefan Israelsson Tampe <address@hidden> wrote:
> (define (f x)
> (let ((s 0))
> (with-special-soft ((s 0))
> (let lp ((i 0))
> (cond
> ((>= i 100) s)
> ((= i 50) (abort-to-prompt 'tag) (lp (+ i 1)))
> (else (set! s (+ s i)) (lp (+ i 1))))))))
Is this typical of your intended use case? Why can S not be part of
the named-let and avoid the use of ‘set!’?
- Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/19
- Re: Special variables to relax boxing, Mark H Weaver, 2013/03/21
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/21
- Re: Special variables to relax boxing, Mark H Weaver, 2013/03/21
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/21
- Re: Special variables to relax boxing, Noah Lavine, 2013/03/21
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/22
- Re: Special variables to relax boxing,
Daniel Hartwig <=
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/23
- Re: Special variables to relax boxing, Stefan Israelsson Tampe, 2013/03/23