Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class inheritance "is ::('ClassName')" does not work #3106

Open
p6rt opened this issue Apr 18, 2013 · 2 comments
Open

class inheritance "is ::('ClassName')" does not work #3106

p6rt opened this issue Apr 18, 2013 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 18, 2013

Migrated from rt.perl.org#117669 (status was 'new')

Searchable as RT117669$

@p6rt
Copy link
Author

p6rt commented Apr 18, 2013

From @labster

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.

@p6rt
Copy link
Author

p6rt commented Oct 27, 2016

From @labster

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​:

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.

@p6rt p6rt added the oo label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant