Hi,
In message "Re: R"
on 02/09/28, William Djaja Tjokroaminata <billtj / y.glue.umd.edu> writes:
|I am sorry, as I am not an advanced programmer, may I know the exact
|meaning of "dispatching"? (I really do write my code similar to below in
|my network simulator prototype.)
Your "syntax sugar" just checks types.
|> | def func (a, b, c)
|> | raise "type error" unless a.kind_of Float
|> | raise "type error" unless b.kind_of String
|> | raise "type error" unless c.kind_of Fixnum
Guy's "dispatching" (and one I was talking about) select multiple
methods from its argument types.
matz.