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
Deparsed object constants lose blessedness #16061
Comments
From @maukeCreated by @mauke$ perl -e 'use constant OBJ => bless {}; print OBJ->isa("main"), "\n"' $ perl -MO=Deparse -e 'use constant OBJ => bless {}; print OBJ->isa("main"), "\n"' $ perl -MO=Deparse -e 'use constant OBJ => bless {}; print OBJ->isa("main"), "\n"' | perl OBJ is deparsed as {} instead of bless({}, 'main'), which breaks the code. Perl Info
|
From zefram@fysh.orgl.mai@web.de wrote:
Deparsing as bless({}, 'main') would still leave broken code such as use constant OBJ => bless({}); -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @demerphqOn 2 July 2017 at 12:14, Zefram <zefram@fysh.org> wrote:
Shouldn't it deparse it as OBJ? In a perfect world... Yves -- |
From @cpansproutOn Sun, 02 Jul 2017 03:22:40 -0700, demerphq wrote:
Yes, and that feature made deparse unworkably slow for many practical uses, so it got reverted before 5.10 or 5.12, whichever it was. -- Father Chrysostomos |
Migrated from rt.perl.org#131687 (status was 'open')
Searchable as RT131687$
The text was updated successfully, but these errors were encountered: