Skip Menu |
Report information
Id: 117669
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: labster <bslaabs [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: class inheritance "is ::('ClassName')" does not work
Date: Thu, 18 Apr 2013 15:58:01 -0700
To: rakudobug [...] perl.org
From: Brent Laabs <bslaabs [...] gmail.com>
Download (untitled) / with headers
text/plain 493b
labster: rn: class Foo is ::("Str") { }; say Foo.can('substr')
[3:43pm] camelia: rakudo 203e3a: OUTPUT«[31m===[0mSORRY![31m===[0m␤'Foo' cannot inherit from '::("Str")' because it is unknown.␤at /tmp/iNAeA_Q1i9:1␤------> ␤»
[3:43pm] camelia: ..niecza v24-37-gf9c8fc2: OUTPUT«True␤»
[3:45pm] labster: std: class Foo is ::("Str") { }; say Foo.can('substr')
[3:45pm] camelia: std 86b102f: OUTPUT«ok 00:00 43m␤»

the four-eyed frog operator ::() doesn't make a class object here.
Download (untitled) / with headers
text/plain 930b
Behavior has changed: labster m: class Foo is ::("Str") { }; say Foo.can('substr') camelia rakudo-moar a1fcee: OUTPUT«===SORRY!===␤This type cannot unbox to a native string: P6opaque, QAST::Want␤» labster m: class Foo is ::("Str") { }; camelia rakudo-moar a1fcee: OUTPUT«===SORRY!===␤This type cannot unbox to a native string: P6opaque, QAST::Want␤» On Thu Apr 18 15:58:35 2013, labster wrote: Show quoted text
> labster: rn: class Foo is ::("Str") { }; say Foo.can('substr') > [3:43pm] camelia: rakudo 203e3a: OUTPUT«[31m===[0mSORRY![31m===[0m␤'Foo' > cannot inherit from '::("Str")' because it is unknown.␤at > /tmp/iNAeA_Q1i9:1␤------> ␤» > [3:43pm] camelia: ..niecza v24-37-gf9c8fc2: OUTPUT«True␤» > [3:45pm] labster: std: class Foo is ::("Str") { }; say Foo.can('substr') > [3:45pm] camelia: std 86b102f: OUTPUT«ok 00:00 43m␤» > > the four-eyed frog operator ::() doesn't make a class object here.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org