Previously c1make-var checked whether the symbol NAME is CONSTANTP, but ECL expands symbol macros in CONSTANTP so this returned false positives. A similar concern applied to the CMP-ENV-REGISTER-SYMBOL-MACRO-FUNCTION. C1EXPR-INNER when encountered a symbol tried to yield C1CONSTANT-VALUE for if it iwas CONSTANTP - this was correct except for that we didn't pass the environment to the predicate and symbols weren't shadowed. In this commit one function is added to the core - si:constp (with similar purpose to si:specialp) and one function to the compiler - constant-variable-p (similar to special-variable-p) and they are appropriately used when necessary. A regression test is added. Fixes #662. |
||
|---|---|---|
| contrib | ||
| examples | ||
| msvc | ||
| src | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| appveyor.yml | ||
| CHANGELOG | ||
| configure | ||
| COPYING | ||
| INSTALL | ||
| LICENSE | ||
| Makefile.in | ||
| README.md | ||
ECL stands for Embeddable Common-Lisp. The ECL project aims to produce an implementation of the Common-Lisp language which complies to the ANSI X3J13 definition of the language.
The term embeddable refers to the fact that ECL includes a Lisp to C compiler, which produces libraries (static or dynamic) that can be called from C programs. Furthermore, ECL can produce standalone executables from Lisp code and can itself be linked to your programs as a shared library. It also features an interpreter for situations when a C compiler isn't available.
ECL supports the operating systems Linux, FreeBSD, NetBSD, DragonFly BSD, OpenBSD, Solaris (at least v. 9), Microsoft Windows (MSVC, MinGW and Cygwin) and OSX, running on top of the Intel, Sparc, Alpha, ARM and PowerPC processors. Porting to other architectures should be rather easy.