On Thu, Sep 21, 2000 at 03:38:59AM -0600, Tom Christiansen wrote:
> >   > Could the prototype people please report whether Tim Bunce's issues with 
> >   > prototypes have been intentionally/adequately addressed?
> 
> >I'm not a prototype person (in fact RFC 128 makes it a hanging offence
> >to use that confusing word in connection with parameter lists! ;-)
> >Could someone please recapitulate Tim's issues?
> 
> The long story is here:
> 
>     http://www.perl.com/pub/language/misc/bunce.html
> 
> The short story includes details that involve how to permit
> 
>     sub fn($$$)
> 
> to work with
> 
>     fn(@foo)
> 
> where @foo==3, which won't be known till runtime.

Well there could be some kind of attribute on the sub to allow
runtime instead of compile time checks.

But it would be nice if

  fn(@foo[0..2])

would actually work instead of getting

Not enough arguments for main::abc at - line 2, near "])"

I know why it does not work, but it seems like it should.

Graham.

Reply via email to