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

Cannot make a blessed object readonly #43

Open
exodist opened this issue Oct 25, 2024 · 0 comments
Open

Cannot make a blessed object readonly #43

exodist opened this issue Oct 25, 2024 · 0 comments

Comments

@exodist
Copy link

exodist commented Oct 25, 2024

use strict;
use warnings;

use ReadonlyX;

my $x = bless({}, "Foo::Bar");

Readonly::Hash(%$x, %$x);

The above code works fine with Readonly. It does not work with ReadonlyX

We do not know what to do with Foo::Bar at xxx.pl line 8.

With regular Readonly I am able to use this to make an entire object Readonly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant