On Mon, Dec 17, 2012 at 11:08 AM, Alex Baranosky 
<alexander...@gmail.com<javascript:>
> wrote:

> Function values can't be read by the reader.  I'm not sure how any 
>> versions of this code work.  
>>
>>
> It is true that a function value can not be printed and then read back in, 
> but I don't think that's relevant here. The macro transforms one in-memory 
> list into another in-memory list structure. This doesn't involve the reader.
>

Let's look at this example:

(defmacro defgreeter [greeter-name]
  (let [greeter (java.util.Random.)]
    `(defn ~greeter-name [user-name#]
         (.nextInt ~greeter))))

It fails with

Can't embed object in code, maybe print-dup not defined: 
java.util.Random@1572aa51

How does this error relate to OP's? Since here printing does seem to be 
involved.
  

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