On Fri, Aug 24, 2012 at 4:02 PM, Jim - FooBar(); <jimpil1...@gmail.com> wrote:
> It seems that trying to instantiate a new record via its own methods
> fails!!! example:
>
> (defrecord Foo [a b c]
> Bar
> (update-position [this np] (Foo. a np c)))
>
> No matching ctor found !
>
> There must be a way to do this without going round and round in functions...


It should work just fine. Having said that, IMHO it's better to call
the constructor fn `->Foo` than calling the dot-form directly.

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

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