Grokbase
Topics Posts Groups | in
x
[ help ]

Re: UNIVERSAL::VERSION and version.pm

View PostFlat  Thread  Threaded | < Prev - Next >
A. Pagaltzis Re: UNIVERSAL::VERSION and version.pm
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* Matt S Trout <matt-p5p@trout.me.uk> [2008-10-11 17:15]:
> Plus I've often seen code that does $class->VERSION and I'd be
> willing to bet there's some somewhere that won't handle getting
> a version object back.

Question is though, how many of these places will DTRT with the
stringified version? If a version object breaks the code most of
the time and a stringified version DTWT some of the time, all you
can do is pick your kind of breakage, and frankly I’d prefer the
bigger and more reproducible breakage in that case. The real
solution in that case is to fix the code that can’t handle
getting a version object.

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread : UNIVERSAL::VERSION and version.pm
1)
John Peacock Let me make something perfectly clear: I am not changing the external interface of the CPAN release...
2)
Graham Barr No, I implemented it in the late '90s. Prior to that the only way to require a specific version of...
3)
Matt S Trout That's not what I want anyway, and frankly I agree entirely that any change to the behaviour of...
4)
John Peacock It's trivially easy to subclass version.pm to bend it to your will: $ cat lib/version/comparison.pm...
5)
Matt S Trout I know. But that's kind of a hack. I was hoping I could get patches into CPAN version.pm to achieve...
6)
John Peacock Perhaps because I have some intimation exactly how hard it is going be to do in the core code? It's...
7)
Matt S Trout Given I'm only asking you to express willingness to -apply- such a patch if it were successfully...
8)
Matt S Trout Let me rephrase my previous email. The key part of my previous post was "us writing you a simple...
9)
John Peacock Let me make a counter proposal: use version; # current behavior, exports qv() to caller and...
10)
Roland Giersig *applaudsfromthesideline* Thanks for resolving this in such a civilised way. For a brief moment you...
11)
Matt S Trout That's fucking awesome. Anything I can do to help? Hell yeah. Claim a beer off me next conference...
12)
John Peacock Yeah, you can tell me how you plan on using this mode: use version qw/VERSION/; # exports only...
13)
Matt S Trout Using $VERSION = qv('1.2.3'); and having core things still be happy springs to mind. Plus I've...
14)
A. Pagaltzis Question is though, how many of these places will DTRT with the stringified version? If a version...
15)
Michael G Schwern I'm having a real hard time coming up with a plausible scenario. This is just the sort of thing...
16)
John Peacock As a matter of fact, $class->VERSION always returns the stringified version object, not a version...
17)
John Peacock I don't understand how having the UNIVERSAL::VERSION method in *your* module's namespace as...
18)
Matt S Trout I wish I had a failing test for you, but it appears that the code in question only existed in the...
19)
John Peacock That's kind of a silly statement to make; Perl is not a mathematical system that can be used to...
20)
Matt S Trout Of course. Please also solve the Halting Problem :) Which is why I think it would be nice to be...
21)
John Peacock No, I'm saying that if I do as you ask, there will be an even bigger action-at-a-distance bug,...
22)
Michael G Schwern mst has been possessed by the future ghost of Donald Knuth. Because none of the 5.8 core modules...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >