develooper Front page | perl.perl6.language | Postings from May 2008

Re: First look: Advanced Polymorphism whitepaper

Thread Previous | Thread Next
From:
John M. Dlugosz
Date:
May 2, 2008 06:54
Subject:
Re: First look: Advanced Polymorphism whitepaper
Message ID:
17857-57973@sneakemail.com
Ovid publiustemp-perl6language2-at-yahoo.com |Perl 6| wrote:
> Implemented as:
>
>   method read ( --> Boolean ) { ... }
>
> (How do I specify no args and a Boolean return type?)
>
>   
Take your pick:

our Bool method read () { ... }

method read (-->Bool) { ... }

method read () of Bool  { ... }





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