in reply to Re: strong typing
in thread (Completely OT) - Hero(i)n programming language on Slashdot
Humm, no! To make any arithmetic operation we need to convert the string (that are just a sequence of bytes), into numbers, where we use 4 bytes (32 bits processor) to make the calculation. (this is standart calculation ok!)print $a+$ref_b; #coerce reference into number Those are both scalars. Not a type conversion.
The wonderful job that Perl does for us, with speed, is to convert automatically all the boolean, integer, floating and string types with a single type, SCALAR.
Graciliano M. P.
"Creativity is the expression of liberty".
|Replies are listed 'Best First'.|
Re^3: strong typing
by hardburn (Abbot) on Dec 15, 2004 at 14:12 UTC