Hi
can i "automagically" select a method by type or count of args?
Meaning defining methods with same name (delegates?) doing differrent
things if called differently [metaprogramming?]
def xx(numeric x) x**2 end
def xx(numeric x,y) x-2*y end
def xx(string x) x+"xxx" end
# can sg like  this be archived as valid  ruby input? type of method-args
should be left out in defs, if can be derived from ops/return value of
definition.

Thank you
Berg
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>