develooper Front page | perl.perl5.porters | Postings from January 2011

Re: [PATCH 2/3] modernise package variable style

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
January 31, 2011 04:29
Subject:
Re: [PATCH 2/3] modernise package variable style
Message ID:
16934.1296476937@chthon
Eric Brine Wrote:

> <<our>> should be ok for <<$_SIGRTMIN>>, <<$_SIGRTMAX>> and
> <<$_sigrtn>> since they're internal variables. (Could maybe
> even use <<my>>?)

You can't change something from a global to a private between releases, 
or you're changing the interface.  Anything in the package namespace is
de-facto fair game, and to remove something from there risks breaking old
programs that have been using the globals without your knowledge.  Yes, of
course good judgement says to access only those things that are part of the
documented interface, but there is no language-imposed barrier to people
having done otherwise.  One simply cannot know.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About