Hi,
In message "[ruby-talk:18785] Re: Ruby as opposed to Python?"
on 01/07/30, Piers Cawley <pdcawley / iterative-software.com> writes:
|> I don't understand what you mean by "fully substitutable". You mean
|> seq[1.0] will become legal in Python 3.0? How about seq[1.2]?
|
|That's substituting floats for integers. Somehow I doubt that that
|will become legal.
Hmm, I understand.
How about the following C code? Is this fully substitutable?
main()
{
double d = 5/2;
printf("%f\n",d); # => 2.000000
}
matz.