Hello, everybody, * please, take a brief look at http://blog.headius.com/2009/03/more-compiling-ruby-to-java-types.html
currently there's is some dirty code that let you generate all possible java signatures instead of generating just one. The code doesn't take into account restargs no blocks yet. Anyway, I would like to know what would you expect from such a method. What would you expect in the following case? def foo(a,b,*c) with generate_signatures :foo, [java.lang.String,java.lang.String,java.lang.String,java.lang.String] => Java::void Personally, I would expect the following signatures: void foo(String,String) void foo(String,String,String) void foo(String,String,String,String) and I should add something like :restarg => true to generate one signature with varargs. Cheers, Serabe P.D. You can tell us if you like generate_signatures or would rather something like :expand => true in the signature method! -- http://www.serabe.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
