[parenscript-devel] Problem with BLOCK and RETURN-FROM

Daniel Gackle danielgackle at gmail.com
Tue Dec 7 01:09:06 UTC 2010


(1) The following expression generates the correct code:

(defun blah ()
   (λ ()
    (foo 123)))

But it also emits "Warning: Returning from unknown block NILBLOCK",
which is undeserved.

(2) It's not clear how to do explicit return from a lambda now. That is,

(defun blah ()
  (λ ()
    (when (foo)
      (return 123))
    ;; do some other stuff
    ))

generates the same warning as above. Is this just a bug, or is it suggesting
that one must explicitly declare a scope using (BLOCK NIL...) in order
to do an explicit return warning-free? I'm hoping not the latter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20101206/e29e02f0/attachment.html>


More information about the parenscript-devel mailing list