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
blessing #2757
Comments
From @grondiluHello, I failed converting an object derived from Int using bless: code: class Foo is Int {}; sub somefoo returns Foo { Foo.bless: 13 }; say somefoo.WHAT; Error: $ perl6 --version |
From @moritzOn Thu May 10 06:12:35 2012, grondilu@yahoo.fr wrote:
Rakudo is actually correct here: in Perl 6, bless takes an already-built So, how does one write the constructor for a class that inherits from a A rakudo-specific answer is that you can write class Foo is Int { The spec is silent on how to do it in a more general way. class Foo is Int { }; Foo.new(4) would return a 4 but of type Foo. Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#112850 (status was 'rejected')
Searchable as RT112850$
The text was updated successfully, but these errors were encountered: