[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: return

From: Tassilo Horn
Subject: Re: return
Date: Fri, 26 Nov 2010 10:44:14 +0100
User-agent: KMail/1.13.5 (Linux/2.6.36; KDE/4.5.3; x86_64; ; )

On Friday 26 November 2010 10:24:04 Miles Bader wrote:

Hi Miles,

> Doesn't every defun in CL establish a nil block?

No, it implicitly establishes a block named accordind to the "function
block name" of the function name, which in general is the function name.

(defun cl-fun ()
  (return "bing"))
==> *** - RETURN-FROM: no block named NIL is currently visible

(defun cl-fun ()
  (return-from cl-fun "bang"))
==> "bang"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]