Re: [PATCH] Re: creating a varargs method with gen-class

2013-09-11 Thread Daniel Kwiecinski
Hi, I really badly need this patch in one of my project. But rather than patching clojure's genclass.clj I implemented external utility generating the class with varargs using your patch. I'd like to publish it as an open-source micro utility. I know that you'd just added additional meta

Re: [PATCH] Re: creating a varargs method with gen-class

2013-08-16 Thread Daniel Kwiecinski
This is a great patch. Have you submitted it in clojure jira? -- Lambder On Thursday, 3 May 2012 18:31:29 UTC+1, sw1nn wrote: Updated patch to support varargs in constructors. e.g with the patch you add some meta data to make the method a varargs method like this. (ns foo

Re: [PATCH] Re: creating a varargs method with gen-class

2013-08-16 Thread Neale Swinnerton
On 16 August 2013 12:59, Daniel Kwiecinski daniel.kwiecin...@gmail.comwrote: This is a great patch. Have you submitted it in clojure jira? I haven't submitted it. I've come to the conclusion that generating complex classes using (:gen-class) is a waste of time. Presumably the primary use case

Re: [PATCH] Re: creating a varargs method with gen-class

2013-08-16 Thread Daniel Kwiecinski
Sure I understand this. But I have need to generate hundreds of methods in single class. In clojure it is just few lines. Basically I use clojure in this case as an interface to asm lib. Also I was thinking about using the varargs not only in gen-class but in feify as well, which generates

[PATCH] Re: creating a varargs method with gen-class

2012-05-03 Thread Neale Swinnerton
On Thu, May 3, 2012 at 10:16 AM, Neale Swinnerton ne...@isismanor.com wrote: In the clojure-1.4.0 src  I found that the flag is defined in ./src/jvm/clojure/asm/Opcodes.java  but is never referenced anywhere, which leads me to the conclusion that currently it isn't possible to generate a

Re: [PATCH] Re: creating a varargs method with gen-class

2012-05-03 Thread Neale Swinnerton
Updated patch to support varargs in constructors. e.g with the patch you add some meta data to make the method a varargs method like this. (ns foo (:gen-class :name Foo :init init :constructors {^:varargs [[Ljava.lang.String;] []} :methods [^:varargs [foo