develooper Front page | perl.perl5.porters | Postings from February 2013

Re: File::Spec in XS

Thread Previous | Thread Next
February 28, 2013 17:53
Re: File::Spec in XS
Message ID:
Craig A. Berry wrote:
>So the code paths where invocant_is_unix() is false are still
>File::Spec::Unix but only via inheritance?

Can't quite parse your question.  The invocant_is_unix() check is to
distinguish direct use of File::Spec::Unix from inherited use of its
methods.  The code paths resulting from !invocant_is_unix() are the ones
that play nicely in composition, specifically by calling other methods
(that may have been overridden) rather than assuming that the methods
would be the Unix versions.


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