develooper Front page | perl.perl6.language | Postings from June 2005

Re: When can I take given as read?

Thread Previous | Thread Next
From:
Carl Franks
Date:
June 21, 2005 00:54
Subject:
Re: When can I take given as read?
Message ID:
4f352aae05062100544114e518@mail.gmail.com
>      sub factorial (Int $n is topic) {
>          return 1 when 0;
>          return $n * factorial $n;
>      }

hmm, could we write...

sub foo (Class $self is topic: +$foo, +$bar) {
  .method;
}

to avoid having to use ./
?

Cheers,
Carl

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About