Just to be clear, and to check my understanding, that's not an issue with the number of arguments, right? It's a limit on the size of a literal or something?
I ask because (apply + (range 10000)) works fine, but maybe I've missed some subtlety. Thanks, John On Wed, Feb 12, 2014 at 3:32 PM, Mars0i <[email protected]> wrote: > > > On Wednesday, February 12, 2014 5:14:42 PM UTC-6, Mars0i wrote: > >> On Wednesday, February 12, 2014 2:33:34 PM UTC-6, John Wiseman wrote: >> >>> Is that a potential issue with clojure? >>> >> >> (range 10000) >> >> Then copy its output from the terminal window. >> >> (apply + '<paste here> ) >> >> CompilerException java.lang.ClassFormatError: Invalid method Code length >> 109957 in class file user$eval1179, compiling:(/private/var/ >> folders/AV/AVc7bySmE4a+vcamS7JSTE+++TQ/-Tmp-/form- >> init2649824128421176665.clj:1:1) >> > > But '(reduce +' has the same difficulty. The limit was somewhere between > 5000 and 8000 arguments. I can live with that. > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
