On Oct 13, 3:17 am, Mike Hinchey <[EMAIL PROTECTED]> wrote:
> I know the #= and the AOT changes are new and not explained yet. It
> seems to break a macro I'm writing, which does something like this
> example. It does what I want in 1064, but not 1067.
>
> user> (defmacro aa [f x] `(~(var-get (resolve f)) ~x))
> nil
> user> (aa inc 3)
> I get a similar exception with the example below. Am I
> misunderstanding, or should I be able to eval the #=form printed for a
> fn?
>
> user> inc
> #=(clojure.inc__305. "[EMAIL PROTECTED]")
> user> #=(clojure.inc__305. "[EMAIL PROTECTED]")
> clojure.lang.LispReader$ReaderException:
> java.lang.ClassNotFoundException: clojure.inc__305 (NO_SOURCE_FILE:0)
You cannot, and might never be able to, print/read fns.
I would examine carefully whether your macro really should be doing
this, as this is likely to become disallowed once Clojure can AOT
compile.
The other option would be to allow some things dynamically but not
AOT, which is definitely not my preference.
Rich
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---