develooper Front page | perl.perl6.internals | Postings from June 2001

Re: Should the op dispatch loop decode?

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
June 14, 2001 14:03
Subject:
Re: Should the op dispatch loop decode?
Message ID:
5.1.0.14.0.20010614165749.020b78e0@24.8.96.48
At 07:46 PM 6/14/2001 +0100, Simon Cozens wrote:
>On Thu, Jun 14, 2001 at 11:05:31AM -0700, Benjamin Stuhl wrote:
> > Who would ever _want_ to write 'sv = pp_gvsv(aTHX_ gv);'?
>
>Read comp.lang.perl.moderated for a few weeks and look at the XS
>questions. In the past month, we've had people needing to know how
>to get the caller and how to bless a scalar. And these aren't trivial
>things to do currently;
>     av = pp_caller(aTHX_);
>     pp_bless(aTHX_ rv, class);
>would have been much nicer answers to be able to give.

Hopefully folks won't have to resort to that sort of thing in perl 6--if 
they do it's a sign we've failed in our design of the extension API.

>This reminds us that the other bugger with decoding ops is that quite
>a few things are list operators, and hence variadic anyway.

They'll be monadic in perl 6. Granted that one parameter will be a pointer 
to a list, but still... a single parameter.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | 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