Re: Quick question on subroutine declaration syntax

2001-10-30 Thread Aaron Sherman
On Tue, Oct 30, 2001 at 03:59:30PM +1100, Damian Conway wrote: (Though I *do* harbour a secret desire to resurrect - as a type specifier: sub foo (@args) - rettype Hmm... I would have expected is to come in here: sub foo (@args) is IO::Handle my $bar - int; Hmm...

Re: Quick question on subroutine declaration syntax

2001-10-30 Thread Damian Conway
Aaron wrote: sub foo (@args) - rettype Hmm... I would have expected is to come in here: sub foo (@args) is IO::Handle It would have to be: sub foo (@args) is type(IO::Handle) or something, I think. Unless Larry decides that every class/module name is

Re: Quick question on subroutine declaration syntax

2001-10-29 Thread Damian Conway
For a typed subroutine with named parameters, is the declaration syntax (sans property declaration) going to be: 'sub' type ident '(' paramlist ')' block (in, say, Parse::RecDescent)? I'm thinking about how to add subroutines to BabyPerl*, and I need to know if