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

Re: File::Spec in XS

Thread Previous | Thread Next
From:
Zefram
Date:
February 28, 2013 17:53
Subject:
Re: File::Spec in XS
Message ID:
20130228175304.GF28131@lake.fysh.org
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.

-zefram

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