At 11:05 AM 6/14/2001 -0700, Benjamin Stuhl wrote:
>--- Nick Ing-Simmons <[EMAIL PROTECTED]> wrote:
> > Benjamin Stuhl <[EMAIL PROTECTED]> writes:
> > >I don't see where shadow functions are really necessary
> > -
> > >after all, no one has ever complained that you can't do
> > >
> > >pp_chomp(sv); /* or pp_add(sv1, sv2), for that matter */
> > >
> > >in Perl 5.
> >
> > Yes we did. And note the doop.c file which is part answer
> > to the shadows.
>
>True. I had forgotten about those. But what would be the
>point of shadowing most of the pp_hot.c functions? Who
>would ever _want_ to write 'sv = pp_gvsv(aTHX_ gv);'?

The point is that when we turn out the TIL (or, if you prefer, perl2C) 
version of perl 6 it can call into the functions with direct rather than 
indirect parameters at least some of the time. I'm not planning on having 
user code call into perl opcode functions.


                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to