Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread Dan Sugalski
At 05:16 PM 8/4/00 +0100, Piers Cawley wrote: >Dan Sugalski <[EMAIL PROTECTED]> writes: > > Indirect calls might not be a problem, depending on how much flow analysis > > we can do in the optimizer. While that won't be much in the > > on-the-fly-compile version (a 10s runtime with a 50s compile ti

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > Indirect calls might not be a problem, depending on how much flow analysis > we can do in the optimizer. While that won't be much in the > on-the-fly-compile version (a 10s runtime with a 50s compile time's not a > good thing...) I'm hoping the optimiz

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread Dan Sugalski
At 09:10 AM 8/4/00 -0600, Tom Christiansen wrote: > >At 12:47 AM 8/4/00 -0400, Ken Fox wrote: > >>John Tobey wrote: > >> > The Perl 5 (and older) behavior may preclude some optimizations. > >> > >>I can't think of any optimizations @_ assignment precludes. > >>If we don't analyze dataflow to figur

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread Tom Christiansen
>At 12:47 AM 8/4/00 -0400, Ken Fox wrote: >>John Tobey wrote: >> > The Perl 5 (and older) behavior may preclude some optimizations. >> >>I can't think of any optimizations @_ assignment precludes. >>If we don't analyze dataflow to figure out if a sub modifies its >>args, then we just assume it wil

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread Dan Sugalski
At 12:47 AM 8/4/00 -0400, Ken Fox wrote: >John Tobey wrote: > > The Perl 5 (and older) behavior may preclude some optimizations. > >I can't think of any optimizations @_ assignment precludes. >If we don't analyze dataflow to figure out if a sub modifies its >args, then we just assume it will. If

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread Dan Sugalski
At 08:20 AM 8/4/00 -0400, John Tobey wrote: >Ken Fox <[EMAIL PROTECTED]> wrote: > > John Tobey wrote: > > > The Perl 5 (and older) behavior may preclude some optimizations. > > > > I can't think of any optimizations @_ assignment precludes. > > If we don't analyze dataflow to figure out if a sub m

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-04 Thread John Tobey
Ken Fox <[EMAIL PROTECTED]> wrote: > John Tobey wrote: > > The Perl 5 (and older) behavior may preclude some optimizations. > > I can't think of any optimizations @_ assignment precludes. > If we don't analyze dataflow to figure out if a sub modifies its > args, then we just assume it will. Supp

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-03 Thread Ken Fox
John Tobey wrote: > The Perl 5 (and older) behavior may preclude some optimizations. I can't think of any optimizations @_ assignment precludes. If we don't analyze dataflow to figure out if a sub modifies its args, then we just assume it will. Is this just a style issue? Why would you allow it

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-03 Thread John Tobey
Peter Scott <[EMAIL PROTECTED]> wrote: > So user subroutines should not be able to reproduce the semantics, of, > e.g., sysread()? I was hoping for more equality in this respect (user subs > being able to do anything builtins can) rather than less. Let me clarify. Only unprototyped subs are a

Re: proto-rfc. Elements of @_ should be read-only.

2000-08-03 Thread Peter Scott
At 08:18 PM 8/3/00 -0400, John Tobey wrote: >Unprototyped subs should not be allowed to modify their callers' data >simply by assigning to elements of the arg array. This form of >passing by reference is obsolete now that Perl has hard references and >C<\$> in prototypes. The feature is confusin

proto-rfc. Elements of @_ should be read-only.

2000-08-03 Thread John Tobey
This is not quite finished yet, as I read the rest of the C-- garbage collection paper. -John =head1 TITLE Elements of @_ should be read-only =head1 VERSION Maintainer: John Tobey <[EMAIL PROTECTED]> Date: 3 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: =head1 ABSTRA