>> It seems following is invalid:
>>
>> (let ((a 2))
>> (define (foo x) (+ a x)))
>>
>> I prefer to reduce scope of variable as much as possible, so
>> I find this restriction unconvinent. Is is part of standard or technical
>> limitation? Is it any workaround?
>
> Section '3.4.7 Example 2: A Shared Persistent Variable' is probably what you
> want?
Yes, although it is a bit too verbose.
(define (foo x)
(let ((a 2))
(+ a x0)))
is enough for my puroses, although solution about define-values seems
intresting. Thanks all!-- Best regards, Dmitry Bogatov <[email protected]>, Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments are forwarded to /dev/null.
pgpvUD2foKato.pgp
Description: PGP signature
