On Mon, Sep 21, 2009 at 6:48 PM, patrickdlogan <patrickdlo...@gmail.com>wrote:

>
> > (force del) ; note that @del would be equivalent here
>
> This is at the core of my question. I did not understand that a delay
> is something that can be deref'd until I read the source.
>

Well, it's documented but not on #'delay:

=> (doc deref)
-------------------------
clojure.core/deref
([ref])
  Also reader macro: @ref/@agent/@var/@atom/@delay/@future. Within a
transaction,
  returns the in-transaction-value of ref, else returns the
  most-recently-committed value of ref. When applied to a var, agent
  or atom, returns its current state. When applied to a delay, forces
  it if not already forced. When applied to a future, will block if
  computation not complete


I'll open a ticket for changing the docstring of delay to mention deref/@.

Christophe




-- 
Professional: http://cgrand.net/ (fr)
On Clojure: http://clj-me.blogspot.com/ (en)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to