Dead global variables?

I may have this wrong so I'm asking. =20

I can find nothing referring to PL_revision, PL_version, or =
PL_subversion anywhere in perl or CPAN. I don't think there are =
circumstances where you can reference them as =
revsion/version/subversion. Does this mean they are unused and could be =
removed?

Todd
0
toddr
8/1/2020 4:58:54 AM
perl.perl5.porters 48176 articles. 1 followers. Follow

3 Replies
16 Views

Similar Articles

[PageSpeed] 54

On Fri, 31 Jul 2020 23:58:54 -0500
Todd Rinaldo <toddr@cpanel.net> wrote:

> I may have this wrong so I'm asking.  
> 
> I can find nothing referring to PL_revision, PL_version, or
> PL_subversion anywhere in perl or CPAN. I don't think there are
> circumstances where you can reference them as
> revsion/version/subversion. Does this mean they are unused and could
> be removed?

It sounds like they're probably dead and could be removed then.

But I would suggest not doing so yet, as they're hardly in the way of
anything currently. We should keep the giant "bump version to 7"
changes as small as technically possible, so if things do break it will
be easier to unpick why. We can remove those dead variables later on
when the 7 part is settled.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/
0
leonerd
8/1/2020 11:55:11 AM

> On Aug 1, 2020, at 6:55 AM, Paul LeoNerd Evans =
<leonerd@leonerd.org.uk> wrote:
>=20
> On Fri, 31 Jul 2020 23:58:54 -0500
> Todd Rinaldo <toddr@cpanel.net> wrote:
>=20
>> I may have this wrong so I'm asking. =20
>>=20
>> I can find nothing referring to PL_revision, PL_version, or
>> PL_subversion anywhere in perl or CPAN. I don't think there are
>> circumstances where you can reference them as
>> revsion/version/subversion. Does this mean they are unused and could
>> be removed?
>=20
> It sounds like they're probably dead and could be removed then.
>=20
> But I would suggest not doing so yet, as they're hardly in the way of
> anything currently. We should keep the giant "bump version to 7"
> changes as small as technically possible, so if things do break it =
will
> be easier to unpick why. We can remove those dead variables later on
> when the 7 part is settled.
>=20

I'm only thinking of this as a 7.2 or future change. Nothing to do with =
7.0.0 or 7.1.0

Todd
0
toddr
8/1/2020 5:00:59 PM
On Fri, Jul 31, 2020 at 11:58:54PM -0500, Todd Rinaldo wrote:
> I may have this wrong so I'm asking.  
> 
> I can find nothing referring to PL_revision, PL_version, or
> PL_subversion anywhere in perl or CPAN. I don't think there are
> circumstances where you can reference them as
> revsion/version/subversion. Does this mean they are unused and could be
> removed?

From the comments in perl.h added by Nicholas C in 2011:

/* These are baked at compile time into any shared perl library.
   In future releases this will allow us in main() to sanity test the
   library we're linking against.  */

So I guess we could potentially make use of them in future.

-- 
Lear: Dost thou call me fool, boy?
Fool: All thy other titles thou hast given away; that thou wast born with.
0
davem
8/3/2020 11:00:05 AM
Reply: