[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Req for help on objects and environments]
From: |
Ludovic Courtès |
Subject: |
Re: [Fwd: Req for help on objects and environments] |
Date: |
Sat, 4 Sep 2004 15:07:01 +0200 |
User-agent: |
Mutt/1.5.4i [Guile enabled] |
Hi,
Today, one hour, 13 minutes, 41 seconds ago, Marius Vollmer wrote:
> Guile does not (yet?) use the 'environment' data type described in
> this draft proposal.
Good reason. ;-)
What fooled me is that Guile (1.6.4) seems to already implement most of
the operations described in the proposal:
environment-bound? environment-module environment-set!
environment-cell environment-observe environment-undefine
environment-define environment-observe-weak
environment-unobserve
environment-fold environment-ref environment?
Looking closer at what these functions do, it looks like they are
currently unusable:
guile> (environment-ref (scheme-report-environment 5) 'append)
<unnamed port>:33:1: In procedure environment-ref in expression
(environment-ref (scheme-report-environment 5) (quote append)):
<unnamed port>:33:1: Wrong type argument in position 1: #<interface (ice-9
r5rs) 8086720>
Whatever is returned by `scheme-report-environement',
`interaction-environment', `current-module' and the likes is suitable as
the `env' argument of `eval' but not as the `env' argument of the
aforementioned procedures. Is it that the proposal _was_ implemented
but never got integrated into the rest of Guile?
Thanks,
Ludovic.