both (my-ref :a) and (@my-ref :a) returns 1. hmmm...

On Jan 6, 11:01 am, "Mark Volkmann" <[email protected]> wrote:
> Why does this output 1?
>
> (def my-ref (ref {:a 1}))
> (my-ref :a)
>
> I thought I could only access data in a ref by dereferencing it, but
> this shows otherwise.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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