[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scm_local_eval is not available in Guile V2.
From: |
David Kastrup |
Subject: |
Re: scm_local_eval is not available in Guile V2. |
Date: |
Tue, 15 Nov 2011 15:29:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Ian Hulin <address@hidden> writes:
> Hi all,
>
> The latest git now dies on my V2 Guile system with
> .../lily/parse-scm.cc:59:64: error 'scm_local_eval' was not declared in
> this scope.
>
> From Guile V2 NEWS
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ** No more `local-eval'
>
> `local-eval' used to exist so that one could evaluate code in the
> lexical context of a function. Since there is no way to get the lexical
> environment any more, as that concept has no meaning for the compiler,
> and a different meaning for the interpreter, we have removed the
> function.
>
> If you think you need `local-eval', you should probably implement your
> own metacircular evaluator. It will probably be as fast as Guile's
> anyway.
>
> -----------------------------------------------------------------------
>
> This did not crash on Guile V2 until I pulled the latest git
> repository today. David, is this part of you ly:export removal or
> related parser brain surgery?
Related. #{ ... #} is evaluated in the lexical context of the
surrounding function. Is there anything that made Guile a flexible tool
left in Guile V2? "compilation" gives us all the disadvantages and
rigidity of C at a fraction of its speed, it seems.
I'll have to see whether I can come up with something working even half
as nicely. Probably will have to be rather close to the kludge we had
before.
--
David Kastrup