On Fri, Jul 11, 2025 at 01:15:50PM +0100, Gavin Smith wrote:
> > There is the $Data::Dumper::Toaster function in Data::Dumper that could
> > be used to do something for each blessed object, maybe copy it without
> > blessing?
> 
> It is $Data::Dumper::Freezer that does something before it is
> dumped.  Copying the hash doesn't work (it is the original hash
> that needs to be unblessed).  I could unbless it using the (not installed
> by default) Data::Structure::Util module, but then I ran into
> problems with type checks in  Texinfo::Common::debug_print_element,
> Texinfo::Convert::Texinfo::_convert_to_texinfo and possibly elsewhere.
> So then I would have to iterate over the tree and rebless every element.

Or the type checks could be changed to accept a plain HASH too as it was
before or be removed/commented out.  Now that the TexinfoTree interface
is not supposed to be used, this could make sense.  The example
converters using the TreeElement interface are not gonna be maintained
and will diverge anyway.  We can revisit that issue after the release.

> Probably not worth the trouble just for this function.  I can work around
> the problem with regex.

Ok.

-- 
Pat

Reply via email to