[EMAIL PROTECTED] (Adam Kennedy) writes:
> Forgive my ignorance here, but for all of these different ways of
> doing constants, will they all optimize (including partial
> evaluation/currying) at compile/build/init/run-time?

Gosh, I hope not.

> my $gravity is constant = 10; # One significant figure
> sub time_to_ground ($height, $accel) {
>       ...acceleration math...
> }

The ability to play around with the working of &time_to_ground before it
runs is one of the things I like about Perl.

-- 
A language that doesn't have everything is actually easier to program
in than some that do.
                -- Dennis M. Ritchie

Reply via email to