> Given:
>
> test=>(defrecord Foo [A B])
> test=>(class (Foo. 1 2))
> test.Foo
>
> How do I:
>
> test=>(new "test.Foo" 1 2)
> #:test.Foo{:A 1, :B 2}
>
> Currently I get " Unable to resolve classname: test/Foo".Check out http://stackoverflow.com/questions/3748559/clojure-creating-new-instance-from-string-class-name. Be sure to scroll down to see all the replies, since the macro one is (IMO) the easiest to understand, although it has limitations. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
