On Tue, May 24, 2005 at 01:53:42PM +0100, Alex Gutteridge wrote:
> I've written up the case I found as a test, please feel free to add
> it if it's useful. All tests pass apart from the last one which tests
> attribute chaining. Tested on Pugs 6.2.5.
Thanks, stevan applied it and I believe it
Hi,
I've written up the case I found as a test, please feel free to add
it if it's useful. All tests pass apart from the last one which tests
attribute chaining. Tested on Pugs 6.2.5.
#!/usr/bin/pugs
use v6;
use Test;
plan 7;
#Setup
class Foo {
has $.bar is rw;
}
my $foo = Foo.new;
Hi,
I have seen similar weirdness and added a couple of tests over the
weekend, whilst simultaneously forgetting to mention it on IRC:
class Foo {
method noargs () { 42 }
method callsmethod2 { .noargs(); }
}
$val = $foo.callsmethod2()
dies. (t/oo/method/instance.t)
It appears to be someth
Hi,
Just playing around with pugs 6.2.5 OO and couldn't work this out:
class Bowl {
has $.fish is rw;
has $.water is rw;
}
class Fish {
has $.bowlis rw;
has $.eyesis rw;
}
my $bowl = Bowl.new;
my $blinky = Fish.new;
$bowl.water = 'Murky';
$blinky.eye