Branden wrote:
> 
> Instead of:
> 
>  :  pre abc  {  do_pre_handler(@_);  }
>  :  post abc {  do_post_handler($_[-1]); }
> 
> why not make it:
> 
>  :  pre_post_handler abc {
>  :     do_pre_handler(@_);     # pre part
>  :     my $result = REAL_SUB::abc(@_);
>  :     do_post_handler($result);
>  :     return $result;
>  :  }

What you've given, and discussed, is an *implementation* of the
feature.  If implemented, all that stuff will be hidden from the
user; she's left with the mere tasks of defining the pre- and
post-handlers.  And that's what the RFC proposes, at the language
level.  I don't see where you've offered an alternative to 
defining the two separately.

-- 
John Porter

Took away his vocal, put him in a blackhole,
 blocking up the entrance with tar and muck

Reply via email to