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
Assigning to instance hashes,arrays fails #205
Comments
From johan.viklund@ebc.uu.seOn rakudo (rev. 29869) this fails with message "get_pmc_keyed() not class Foo { Initializing %.bar to () solves this particular problem, but another class Foo { Gives this error: "Odd number of elements found where hash expected" And the workaround for this is to declare set_bar like this method set_bar { For arrays: class Foo { Gives "Method 'push' not found for invocant of class 'Undef'" Similar workaround as for hash (eg. initialize it first). -- |
From @jnthnHi, As of r30090, the following: -- Now prints "baz". Also this: -- Prints 100, then 200. Thanks for reporting! Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#57422 (status was 'resolved')
Searchable as RT57422$
The text was updated successfully, but these errors were encountered: