[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making the -e option compatible with new versions of Guile 1.4
From: |
Marius Vollmer |
Subject: |
Re: Making the -e option compatible with new versions of Guile 1.4 |
Date: |
Mon, 17 Jan 2005 18:10:10 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Neil Jerram <address@hidden> writes:
> [..] Also reminds me of an extension to @ or @@ that I was
> going to ask about. Namely, so as to allow lookups within the
> environment of a closure.
Hmm, I don't think we should extend @ or @@ to do this. Lexical
variables are different from global ones: they only exist within a
given environment and you need to specify that environment when
accessing them. @ and @@ can not specify this environment.
> So, for example, with
>
> (define (xxx . args)
> (define (internal-proc x y z)
> ...)
> ...)
>
> one could reference the procedure for "internal-proc" as
>
> (@@ (MODULE NAME) xxx internal-proc)
Which procedure should this refer to? Every call to xxx creates a new
procedure named 'internal-proc'.
> Probably only useful for debugging - i.e. it would make it possible to
> set a breakpoint on internal-proc - and other kinds of introspection,
> but what do you think?
Hmm, yes, in a debugger, your syntax could refer to all procedures
every created. So it could be part of the syntax of the debugger, I
don't think it can be part of the syntax of normal Scheme programs.