develooper Front page | perl.perl5.porters | Postings from April 2000

increase efficiency of & proto'd subroutines

Thread Next
From:
Jeff Pinyan
Date:
April 13, 2000 06:55
Subject:
increase efficiency of & proto'd subroutines
Message ID:
Pine.GSO.4.21.0004130952580.16448-100000@crusoe.crusoe.net
Is it possible to allow the & prototype (if the first argument to a
function, to accept a Perl expression (as do map and grep)?  I have
absolutely no idea how difficult this would be to implement, but if we
could have prototyped subroutines that use expressions, then would the
efficiency of executing the expression vs. the code reference be there
like it is for map and grep?

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy@pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About