[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MIT-Scheme-users] define "keyword" as variable?
From: |
Aaron S. Hawley |
Subject: |
Re: [MIT-Scheme-users] define "keyword" as variable? |
Date: |
Thu, 21 Aug 2003 20:46:23 -0400 (EDT) |
On Thu, 21 Aug 2003, Kean Heng Lim wrote:
> Hi,
>
> Scheme got any reserved words?
MIT Scheme Reference 1.4.3 Special Form Syntax
http://www.gnu.org/software/mit-scheme/documentation/scheme_2.html#SEC27
> What will happens if someone use define as variable?
um *shrug*, don't know. you can't use "define" again? that's for sure.
> How to recover original meaning of define then?
(unbind-variable (the-environment) 'define)
more at:
MIT Scheme Reference 1.2.2 Environment Concepts
http://www.gnu.org/software/mit-scheme/documentation/scheme_2.html#SEC9
and:
MIT Scheme Reference 13 Environments
http://www.gnu.org/software/mit-scheme/documentation/scheme_14.html#SEC136
/a
> Thanks in advanced
> Scheme Microcode Version 14.9
> MIT Scheme running under Microsoft Windows NT 4.0 (Build 1381; Service Pack
> 6) IA-32
>
> Scheme saved on Tuesday June 18, 2002 at 12:23:59 AM
> Release 7.7.1
> Microcode 14.9
> Runtime 15.1
> Win32 1.6
>
> 1 ]=> (define lambda 1)
> ; Value: lambda
>
> 1 ]=> (define define 0)
> ; Value: define
>
>
> Regards,
> KeanHeng