Re: Evaluating with a lexical environment

2019-07-13 Thread Spiros Bousbouras
On Thu, 11 Jul 2019 21:39:34 +0200 Daniel Kochmański wrote: > > Looking in the ECL source I saw a si::eval-with-env function in file > > ecl-16.1.3/src/c/compiler.d .If you do > > > >> (find-symbol "EVAL-WITH-ENV" "SYSTEM") > > SI:EVAL-WITH-ENV > > :EXTERNAL > > > > which suggests that t

Re: Evaluating with a lexical environment

2019-07-11 Thread Daniel Kochmański
Hello Spiros, > I was wondering if ECL has something analogous or could be added easily. no such interfaces are present currently in ECL. Even with bytecompiler code is not interpreted but always minimally compiled. > Looking in the ECL source I saw a si::eval-with-env function in file > ecl

Evaluating with a lexical environment

2019-07-11 Thread Spiros Bousbouras
clisp provides a facility to evaluate a form in a non null lexical environment. It works as follows > (let ((a 1) (b 2)) (ext:eval-env '(format t "a is ~A b is ~A~%" a b) (ext:the-environment))) a is 1 b is 2 NIL The clisp documentation gives Macro EXT:THE-ENVIRONMENT. As in Sch