Re: [Module::Build] version.pm and version number comparison problem
Status: Beta
Brought to you by:
kwilliams
|
From: Chris D. <ch...@cl...> - 2006-02-03 04:52:59
|
On Feb 2, 2006, at 10:26 PM, Ken Williams wrote:
> On Feb 2, 2006, at 10:18 PM, Chris Dolan wrote:
>> Well, if it throws an exception, it's probably not a version
>> instance, right?
>
> Why not? It could be a version instance that overloads isa() for
> whatever satanic purpose it wants to, and throws an exception,
> because it's evil and it can.
I don't think version.pm is actually in league with the devil. :-)
Presumably, version would only override isa() if it really, really
needed to be overridden. Why should we ignore that decision that was
probably made with great care?
> What I really want to know, and what UNIVERSAL::isa() tells me, is
> whether there's an @ISA-chain up to 'version'.
No, that's not right. What you want to know is if the $version is
not a plain scalar and therefore whether it needs to be numify()ed.
isa('version') is a close proxy for that decision.
Sorry to drag this out -- I know you already abstained, Ken -- but it
took *me* a long time to grasp this through a series of emails with
nothingmuch, so I felt that I should share.
Chris
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Clotho Advanced Media, Inc. - Creators of MediaLandscape Software
(http://www.media-landscape.com/) and partners in the revolutionary
Croquet project (http://www.opencroquet.org/)
|