Looks like our implementation doesn't match CL's after all.
(blah2-call) evaluates to (2 5) in Common Lisp, but [2, undefined] in Parenscript.
(defun blah1 () (values 2 5))
(defun blah2 () (blah1))
(defun blah2-call () (multiple-value-bind (a b) (blah2) (list a b)))
Daniel
Fixing this with the current implementation would require whole-program analysis. This is one of those things where I am inclined not to fix it - I only ever used this behavior once, that I remember.
Vladimir
2010/2/22 Daniel Gackle danielgackle@gmail.com:
Looks like our implementation doesn't match CL's after all.
(blah2-call) evaluates to (2 5) in Common Lisp, but [2, undefined] in Parenscript.
(defun blah1 () (values 2 5))
(defun blah2 () (blah1))
(defun blah2-call () (multiple-value-bind (a b) (blah2) (list a b)))
Daniel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
Well, I ran across the discrepancy precisely because I was using the behavior. However, it isn't that important in the present case, and nobody else has mentioned it, so I agree that it isn't worth a major effort to fix.
On Mon, Feb 22, 2010 at 10:40 PM, Vladimir Sedach vsedach@gmail.com wrote:
Fixing this with the current implementation would require whole-program analysis. This is one of those things where I am inclined not to fix it - I only ever used this behavior once, that I remember.
Vladimir
2010/2/22 Daniel Gackle danielgackle@gmail.com:
Looks like our implementation doesn't match CL's after all.
(blah2-call) evaluates to (2 5) in Common Lisp, but [2, undefined] in Parenscript.
(defun blah1 () (values 2 5))
(defun blah2 () (blah1))
(defun blah2-call () (multiple-value-bind (a b) (blah2) (list a b)))
Daniel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel@common-lisp.net