On Wed, 3 Jul 2002, Ashley Winters wrote:
: Creepy. Here's my creepy thought for the day: is there a possibility for a 
: prototype which would implicitly wrap a sub{} around a passed-in argument? 
: i.e. lazy evaluation via sub prototype?
: 
: sub check_it_out (&$idx is rw, &$val is rw) {
:     $idx = 0;
:     $val = 7;
: }

That'd have to be more like:

    sub check_it_out (&idx is rw, &val is rw) {
        idx() = 0;
        val() = 7;
    }

Note that that's almost a macro definition:

    sub check_it_out is inline (&idx is rw, &val is rw) {
        idx() = 0;
        val() = 7;
    }

That might not be enough info, though.  May need to declare
the parameters to have no arguments:

    sub check_it_out is inline (&idx() is rw, &val() is rw) {
        idx() = 0;
        val() = 7;
    }

Larry

Reply via email to