On 11/8/05, Gaal Yahas <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 08, 2005 at 07:07:42PM +, Luke Palmer wrote:
> > > class Jabberwock {
> > > has $.jaws = "bite";
> > > has $.claws = "catch";
> > > }
> >
> > That is legal Perl 6. The fact that it is not legal pugs is
On 11/8/05, chromatic <[EMAIL PROTECTED]> wrote:
> On Fri, 2005-11-04 at 13:15 -0500, Austin Frank wrote:
>
> > If roles are interfaces, do we want any class that provides an interface
> > consistent with a role to implicitly do the role? That is, if a class
> > fulfills all of the interface requi
On Fri, 2005-11-04 at 13:15 -0500, Austin Frank wrote:
> If roles are interfaces, do we want any class that provides an interface
> consistent with a role to implicitly do the role? That is, if a class
> fulfills all of the interface requirements of a role without actually
> saying it does the
On Sat, Nov 05, 2005 at 11:35:38AM -0800, Jonathan Lang wrote:
: First off: is there a way to declare a method as being private to a role?
We're still batting around the notion of private methods. Certainly
with a lexically scoped sub you can get most of the same benefit.
Trust could then perhaps
On Mon, Nov 07, 2005 at 08:44:28PM +0100, TSa wrote:
: HaloO,
:
: Larry Wall wrote:
: > : ::Takes3Ints ::= :(Int,Int,Int --> Any);
: > :
: > : my &foo:(Takes3Ints);
: >
: > I'd say that has to be something like:
: >
: > my &foo:(Takes3Ints:);
: >
: > or maybe one of
: >
: > my
On Tue, Nov 08, 2005 at 07:07:42PM +, Luke Palmer wrote:
> > class Jabberwock {
> > has $.jaws = "bite";
> > has $.claws = "catch";
> > }
>
> That is legal Perl 6. The fact that it is not legal pugs is pugs's problem.
> :-)
Noted. Perhaps it'd be worth foregroun
On 11/8/05, Gaal Yahas <[EMAIL PROTECTED]> wrote:
> Wouldn't it be nice to be able to supply default values for instance
> variables right in the attribute declaration?
>
> class Jabberwock {
> has $.jaws = "bite";
> has $.claws = "catch";
> }
>
> my $scary = Jabbe
Wouldn't it be nice to be able to supply default values for instance
variables right in the attribute declaration?
class Jabberwock {
has $.jaws = "bite";
has $.claws = "catch";
}
my $scary = Jabberwock.new;
my $wimpy = Jabberwock.new(jaws => "chew", claws =