The fact taht gfdef is null does not mean that the funcallable is not a function. We distinguish funcallables from non-funcallables by checking the header flag x->instance.isgf -- when it is 0, then the instance is not funcallable. In this commit we are still lenient towards the behavior, that any instance may become a funcallable by a mere action of assigning the function -- initially we set assign the function (for funcallables) to nil, ensuring that .isgf is not ECL_NOT_FUNCALLABLE (but rather ECL_NULL_DISPATCH - a new state flag). This assignment is at this moment performed in the only method ALLOCATE-INSTANCE specialized to classes (and we verify the actual class using subtypep). A more strict implementation would: - assign isgf when the instance is allocated - refus to assign new function to instances that are not funcallables This commit is enough to fix the test MOP.0030, BUT NOT MOP.0031. |
||
|---|---|---|
| contrib | ||
| examples | ||
| src | ||
| .gitignore | ||
| .gitlab-ci.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.