ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
Re: &?CALLER::BLOCK vs. any hope of efficient compilation
by Larry Wall other posts by this author
Jun 14 2005 8:58AM messages near this date
&?CALLER::BLOCK vs. any hope of efficient compilation | new mailing list: perl6-general?
On Tue, Jun 14, 2005 at 04:13:08PM +0200, Chip Salzenberg wrote:
: It therefore would a Bad Thing if &?CALLER::BLOCK worked generally.
: If the caller _is_ a block that was already marked at compile time as
: requiring full sub properties then, of course, it's no problem to use
: the syntax &?CALLER::BLOCK to denote it.

It's okay to optimize away callability, though I'd like to point out
that &?CALLER::BLOCK by itself doesn't imply a call.  It might most
often be used to get at the block's metadata without the intent of
calling it.  And in that case it needs only a tiny bit of dynamic
support, probably just some link to the current (static) lexical
block scope object that you could probably get from caller() anyway.
But it's fine to throw an exception if they actually try to call the
beastie unexpectedly.

Larry
Thread:
Chip Salzenberg
Larry Wall

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved