On Wed, Nov 07, 2001 at 03:41:54PM -0500, Ken Fox wrote:
> Dan Sugalski wrote:
> >     my $foo;
> >     $foo = 12;
> >     print $foo;
> >     $foo /= 24;
> >     print $foo;
> 
> Well, there's only two assignments there,

It isn't even two assignment, hell, it reduces to: 120.5
literally, if you optimized the fact that 

        print $a; print $b;

is equivalent to

        print $a, $b;

you could even go further replacing the list operator ,
with . or _ (depending on language version) at compile time
and reduce it to

        print 120.5;

At which point, you wouldn't even touch a single vtable, and
just compile the opcode.

> Which brings up an interesting question. Does Perl the language
> require just-in-time representation changes or is it legal for the
> compiler to choose an efficient representation in advance?

nope.  

Reply via email to