++ed by:
KES

1 PAUSE user

Reini Urban
and 1 contributors

NAME

optimize - Pragma for hinting optimizations on variables

SYNOPSIS

    use optimize;
    my $int : optimize(int);
    $int = 1.5;
    $int += 1;
    if ($int == 2) { print "$int is integerized" }

    # Following will call this callback with the op
    # as the argument if you are in the specified package.
    # See L<types> how it is used from import and unimport.
    optimize->register(\&callback, $package);

    # and reverse it
    optimize->unregister($package);

DESCRIPTION

optimize allows you to use attributes to turn on optimizations. It works as a framework for different optimizations.

BUGS

optimize usually rewrites the optree, weird and funky things can happen, different optimizations will be in a different state of readyness

AUTHOR

Artur Bergman <abergman at cpan.org>

SEE ALSO

optimize::int B::Generate