Good question. I don't know. Maybe it's in the read stage, rather than in evaluating arguments for + ?
On Wednesday, February 12, 2014 5:43:18 PM UTC-6, John Wiseman wrote: > > 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 <mars...@logical.net <javascript:> > > 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 clo...@googlegroups.com<javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> 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 clojure+u...@googlegroups.com <javascript:>. >> 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 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 --- 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.