Luc is right.

As to explain the behavior, see below:

2010/11/4 Jacek Laskowski <ja...@laskowski.net.pl>:
> Hi,
>
> Is it intended in 1.3-alpha2? I think the error message in 1.2 is way
> better (although not as user friendly as I wish to). Shall I report
> it? Where? How?
>
> devmac:~ jacek$ clj -13
> CLOJURE_DIR:  /Users/jacek/apps/clojure
> CLOJURE_CONTRIB_JAR:  /Users/jacek/apps/clojure-contrib-1.3.0-alpha2.jar
> Clojure 1.3.0-alpha2
> user=> (def c)
> #'user/c
> user=> c
> #<Unbound Unbound: #'user/c>

c has the value "Unbound". The semantic has not changed, the way to
carry the semantic has.

Now if you try to really "use" c, for example use it in call position,
then since Unbound implements IFn, you'll have the appropriate
exception because it correctly overrides IFn's invoke(...) methods.

>
> devmac:~ jacek$ clj
> CLOJURE_DIR:  /Users/jacek/apps/clojure-1.2.0
> CLOJURE_CONTRIB_JAR:
> /Users/jacek/apps/clojure-contrib/target/clojure-contrib-1.2.0.jar
> Clojure 1.2.0
> user=> (def c)
> #'user/c
> user=> c
> java.lang.IllegalStateException: Var user/c is unbound. (NO_SOURCE_FILE:0)



>
> Jacek
>
> --
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://jaceklaskowski.pl
>
> --
> 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

-- 
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