Iñaki Baz Castillo
4/7/2008 8:47:00 PM
El Lunes, 7 de Abril de 2008, Sreedhar Kesanasetti escribi=C3=B3:
> =C2=A0 =C2=A0 =C2=A0Unlike Java why does not ruby specify the method para=
meter types.
> How can a caller know what type of parameter is the method expecting.
Because Ruby use dynamic dispatch, not static as Java.
PD: Is correct "dynamic dispatch" in English?
> =C2=A0 =C2=A0 =C2=A0Same with the return value, ruby returns value of the=
last
> statement, how can a caller know the return type.
Same.
=2D-=20
I=C3=B1aki Baz Castillo