develooper Front page | perl.perl5.porters | Postings from September 2023

MGVTBL fields access

Thread Next
Sergey Aleynikov
September 20, 2023 10:33
MGVTBL fields access
Message ID:
In the struct mgvtbl there're three trailing fields - svt_copy,
svt_dup, svt_local - that were added to it in the 5.8 series. Some
modules on CPAN use their own custom definitions of MGVTBL, with only
5 out 8 members, leaving those three fields out. This works because of
all accesses to them in core are guarded with appropriate MGf_ flags.
Some others check for the presence of a MGf_ definitions or for the
BCD version and define their structs correctly with all required

Are those modules that assume that all accesses to those three fields
are guarded by the corresponding MGf_ flag right? Or there's no such
promise from the core, so they have a bug lurking?

Best regards,
Sergey Aleynikov

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About