This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
null-environment
- To: Kawa Mailing List <kawa at sourceware dot cygnus dot com>
- Subject: null-environment
- From: Daniele Maraschi <maraschi at lirmm dot fr>
- Date: Mon, 10 Jul 2000 17:31:45 +0200
- Organization: L.I.R.M.M.
I found in the Kawa documentation the following definition
of "null-environment" function:
- Function: null-environment
This procedure returns an environment that contains no variable
bindings, but contains (syntactic) bindings for all the syntactic
keywords.
So, I've tried the following:
#|kawa:1|# (define env (null-environment))
#|kawa:2|# env
#<procedure null-environment>
#|kawa:3|# (eval '(define a 5) env)
#|kawa:4|# a
5
#|kawa:5|#
Probably, the effect is not what it was expected!
I think, maybe, the semantic was to returns a new "empty" environment,
but, the real implementation is to return the kawa.standard.Scheme
environment.
--
---------------------
Daniele Maraschi
PhD Student
L.I.R.M.M. ( http://www.lirmm.fr )
161, rue Ada
34392 Montpellier Cedex 5
Tel. +(33)(4)67418670
Fax. +(33)(4)67418500
e-mail: maraschi@lirmm.fr
e-mail(Italy): maraschi@tiscalinet.it
begin:vcard
n:Maraschi;Daniele
tel;fax:+33 (4) 67418500
tel;work:+33 (4) 67418670
x-mozilla-html:FALSE
org:L.I.R.M.M.;Arc
adr:;;;Montpellier;France;34392;France
version:2.1
email;internet:maraschi@lirmm.fr
title:PhD Student
x-mozilla-cpt:;0
fn:Daniele Maraschi
end:vcard