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
Strange stateful results when calling a method containing a .^can call in Rakudo #2295
Comments
From @masak<masak> rakudo: class A { method foo { 'abc' }; A.^add_method('bar', |
From @jnthnOn 13/12/2010 21:08, Carl Mäsak (via RT) wrote:
/jnthn |
The RT System itself - Status changed from 'new' to 'open' |
From @masakmasak (>>), jnthn (>):
So... what's the "right" way to do the above .^add_method? Which construct, if not .^can, should |
From @jnthnOn Mon Dec 13 12:08:41 2010, masak wrote:
These days, .^can always returns a Parcel (List after GLR, I suspect). I can't get any weird stateful behavior any more; it consistently fails to work. The correct spelling is .^lookup, and this consistently works: class A { Though you should really do it at BEGIN time to not make yourself performance and pre-comp issues. Added a test that .^can now fails right off, and .^lookup works out, to S12-introspection/meta-class.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#80694 (status was 'resolved')
Searchable as RT80694$
The text was updated successfully, but these errors were encountered: