Re: Evaling forms that require

2010-09-30 Thread Laurent PETIT
There it is : http://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L5984 The magic only happen for dos which are top level forms 2010/9/30 Phil Hagelberg > On Wed, Sep 29, 2010 at 11:02 PM, Laurent PETIT > wrote: > >> The following form fails in Clojure 1.0, but was

Re: Evaling forms that require

2010-09-30 Thread Phil Hagelberg
On Wed, Sep 29, 2010 at 11:02 PM, Laurent PETIT wrote: >> The following form fails in Clojure 1.0, but was fixed in 1.1: >> >>    (eval '(do (require 'clojure.inspector) clojure.inspector/inspect)) > > Yes, "do" is given special treatment, I've meet this part of code a while > back. It basically j

Re: Evaling forms that require

2010-09-29 Thread Laurent PETIT
2010/9/30 Phil Hagelberg > The following form fails in Clojure 1.0, but was fixed in 1.1: > >(eval '(do (require 'clojure.inspector) clojure.inspector/inspect)) > > It used to fail because it tried to compile the whole quoted form, but > it couldn't compile the inspect reference because the r

Evaling forms that require

2010-09-29 Thread Phil Hagelberg
The following form fails in Clojure 1.0, but was fixed in 1.1: (eval '(do (require 'clojure.inspector) clojure.inspector/inspect)) It used to fail because it tried to compile the whole quoted form, but it couldn't compile the inspect reference because the require hadn't been run yet. I think