On Fri, May 20, 2011 at 6:43 AM, Jules <jules.gosn...@gmail.com> wrote:
> Looks like a ?bug? has crept into defrecord somewhere - I know that there is
> a limit to the number of params that a fn can take, but is it intentional
> that the same limit applies to the number of slots that a record can have ?
>
> [jules@megalodon dada]$ java -jar
> ~/.m2/repository/org/clojure/clojure/1.3.0-alpha6/clojure-1.3.0-alpha6.jar
> Clojure 1.3.0-alpha6
> user=> (defrecord Foo [a b c d e f g h i j k l m n o p q r s t])
> user.Foo
> user=>
>
> [jules@megalodon dada]$ java -jar
> ~/.m2/repository/org/clojure/clojure/1.3.0-alpha7/clojure-1.3.0-alpha7.jar
> Clojure 1.3.0-alpha7
> user=> (defrecord Foo [a b c d e f g h i j k l m n o p q r s t])
> CompilerException java.lang.RuntimeException: Can't specify more than 20
> params, compiling:(NO_SOURCE_PATH:1)
> user=>

It's actually worse than that! There are exactly twenty slots there,
so even though it's saying "can't specify more than 20" it's actually
choking on any amount more than NINETEEN.

-- 
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.

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