On Wed, Jan 27, 2010 at 3:29 PM, Chouser <chou...@gmail.com> wrote: > On Wed, Jan 27, 2010 at 2:56 PM, AlexK > <alexander.konstanti...@informatik.haw-hamburg.de> wrote: >> >> PersistentLists and PersistentHashSets work, but other things fail. >> >> I think i know the reason: >> Compiler.emitValue() (Compiler.java:3741-3879) is for initializing >> constant expressions, but it only adds metadata, if the value is an >> instance of class Obj (Compiler.java:3870). But since commit >> 430dd4fa711d0008137d7a82d4b4cd27b6e2d6d1 (metadata for fns) AFn no >> longer extends Obj, and thus Maps, Symbols and Vectors aren't >> instances of Obj anymore. >> PersistentList extends ASeq which extends Obj directly, so those work. >> No idea why PersistentSet works however. > > I think you nailed it. Changing Obj to IObj on lines 3870 and > 3873 seems to fix it. >
Fixed - thanks all. Rich -- 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