The "@" symbol is a reader macro. It's a hard coded table so that when
the reader comes across the @ symbol it knows to instead change it to
a deref call. For eg,

(def a (ref 0))

(dosync (alter inc a))

@a ;; is the same thing as
(deref a)

http://clojure.org/reader#toc2 or http://clojure.org/api#toc178

Luke Amdor

On Dec 2, 3:03 am, David Powell <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On the subject of with-local-vars, I noticed that I could use @ to
> deference them in addition to var-get. Is that intended behaviour? I
> didn't see it documented anywhere.
>
> --
> Dave

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to