Bug report: Regression, immediately invoked function expressions
The function below works in CCL, CLISP, SBCL and ABCL 1.4.0, but not in ABCL 1.7.1. $ java -jar abcl-1.7.1.jar Armed Bear Common Lisp 1.7.1 Java 1.8.0_265 Oracle Corporation OpenJDK 64-Bit Server VM Low-level initialization completed in 0.188 seconds. Startup completed in 0.869 seconds. Type ":help" for a list of available commands. CL-USER(1): (defun add3 (foo) ((lambda (bar) ((lambda (baz) (1+ baz)) (1+ bar))) (1+ foo))) #<THREAD "interpreter" {32B46F86}>: Debugger invoked on condition of type TYPE-ERROR The value (LAMBDA (BAZ) (1+ BAZ)) is not of type SYMBOL. Restarts: 0: TOP-LEVEL Return to top level. [1] CL-USER(2):
On Sep 30, 2020, at 02:56, Robert Munyer <2433647181@munyer.com> wrote:
The function below works in CCL, CLISP, SBCL and ABCL 1.4.0, but not in ABCL 1.7.1.
$ java -jar abcl-1.7.1.jar Armed Bear Common Lisp 1.7.1 Java 1.8.0_265 Oracle Corporation OpenJDK 64-Bit Server VM Low-level initialization completed in 0.188 seconds. Startup completed in 0.869 seconds. Type ":help" for a list of available commands. CL-USER(1): (defun add3 (foo) ((lambda (bar) ((lambda (baz) (1+ baz)) (1+ bar))) (1+ foo))) #<THREAD "interpreter" {32B46F86}>: Debugger invoked on condition of type TYPE-ERROR The value (LAMBDA (BAZ) (1+ BAZ)) is not of type SYMBOL. Restarts: 0: TOP-LEVEL Return to top level. [1] CL-USER(2):
Confirmed as [working with abcl-1.4.0][1] but failing now. Thanks for the report. [1]: https://abcl.org/trac/ticket/474 -- "A screaming comes across the sky. It has happened before but there is nothing to compare to it now."
On Sep 30, 2020, at 23:06, Mark Evenson <evenson@panix.com> wrote:
On Sep 30, 2020, at 02:56, Robert Munyer <2433647181@munyer.com> wrote:
The function below works in CCL, CLISP, SBCL and ABCL 1.4.0, but not in ABCL 1.7.1.
[…]
(defun add3 (foo) ((lambda (bar) ((lambda (baz) (1+ baz)) (1+ bar))) (1+ foo)))
This should be fixed <https://github.com/armedbear/abcl/pull/303>. I’ll wait to check the Travis CI before merging, but am going to bed now. -- "A screaming comes across the sky. It has happened before but there is nothing to compare to it now."
On Wed, Sep 30, 2020 at 5:23 PM Mark Evenson <evenson@panix.com> wrote:
This should be fixed <https://github.com/armedbear/abcl/pull/303>.
With respect to the bridge between https://github.com/armedbear/abcl and https://abcl.org/svn, are they kept in sync from moment to moment or is one the main repo? Thanks. Blake McBride
On Oct 1, 2020, at 14:17, Blake McBride <blake@mcbride.name> wrote:
On Wed, Sep 30, 2020 at 5:23 PM Mark Evenson <evenson@panix.com> wrote:
This should be fixed <https://github.com/armedbear/abcl/pull/303>.
With respect to the bridge between https://github.com/armedbear/abcl and https://abcl.org/svn, are they kept in sync from moment to moment or is one the main repo?
I currently manually maintain a synchronous state between master branches on <https://github.com/armedbear/abcl> and <https://gitlab.common-lisp.net/abcl/abcl> and trunk on <https://abcl.org/svn>, so you should be able to maintain a reasonable local copy from any of these sources. -- "A screaming comes across the sky. It has happened before but there is nothing to compare to it now."
On Oct 1, 2020, at 00:22, Mark Evenson <evenson@panix.com> wrote:
On Sep 30, 2020, at 23:06, Mark Evenson <evenson@panix.com> wrote:
On Sep 30, 2020, at 02:56, Robert Munyer <2433647181@munyer.com> wrote:
The function below works in CCL, CLISP, SBCL and ABCL 1.4.0, but not in ABCL 1.7.1.
[…]
(defun add3 (foo) ((lambda (bar) ((lambda (baz) (1+ baz)) (1+ bar))) (1+ foo)))
Fixed as <https://github.com/armedbear/abcl/pull/304> aka <https://abcl.org/trac/changeset/15386> Thanks ever so much for the exact bug report. -- "A screaming comes across the sky. It has happened before but there is nothing to compare to it now."
participants (3)
-
Blake McBride
-
Mark Evenson
-
Robert Munyer