Re: Will subroutine signatures apply to methods in Perl6

2001-08-24 Thread Uri Guttman
> "BD" == Brent Dax <[EMAIL PROTECTED]> writes: BD> # BD> my $rex=Dog.new;#ok at BD> # this point... BD> # BD> # BD> $spot.bark(); #ok BD> # BD> $fido.bark(); #ok BD> # BD> $rex.bark();

Re: Will subroutine signatures apply to methods in Perl6

2001-08-24 Thread Uri Guttman
> "BD" == Brent Dax <[EMAIL PROTECTED]> writes: BD> # From: Uri Guttman [mailto:[EMAIL PROTECTED]] BD> # use strict 'typing' ; BD> # BD> # my $foo = Dog.new() ; BD> # BD> # that fails at compile time. BD> # BD> # my Dog $spot = Dog.new() ; BD> # BD>

Re: Will subroutine signatures apply to methods in Perl6

2001-08-24 Thread Uri Guttman
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes: DC> One might also envisage a C pragma to require DC> that all lexicals be typed. do you mean lexical params in a sub signature? or all lexicals in the current scope which contains the pragma? required typing for all lexicals feels too