Re: Math::BigInt inheritance problems

2011-10-10 Thread Bill Ward
On Mon, Oct 10, 2011 at 10:42 AM, Paul Bennett wrote: > On Mon, 10 Oct 2011 13:30:22 -0400, Bill Ward wrote: > > On Sun, Oct 9, 2011 at 7:44 AM, Paul Bennett ** >> wrote: >> >> Ah, but an IP address *is* really a number. An unsigned 128-bit integer, >>> in >>> fact, with some additional propert

Re: Math::BigInt inheritance problems

2011-10-10 Thread Paul Bennett
On Mon, 10 Oct 2011 13:30:22 -0400, Bill Ward wrote: On Sun, Oct 9, 2011 at 7:44 AM, Paul Bennett wrote: Ah, but an IP address *is* really a number. An unsigned 128-bit integer, in fact, with some additional properties that are specific to the semantics of IP addresses themselves. An u

Re: Math::BigInt inheritance problems

2011-10-10 Thread Bill Ward
On Sun, Oct 9, 2011 at 7:44 AM, Paul Bennett wrote: > On Sun, 09 Oct 2011 10:34:46 -0400, Leon Timmermans > wrote: > > I think the obvious mistake you're making is using inheritance in the >> first place. Why are you doing that? Your interface is not «an IP >> address is really a number», so why

Re: Math::BigInt inheritance problems

2011-10-10 Thread David Cantrell
On Sun, Oct 09, 2011 at 10:27:19AM -0400, Paul Bennett wrote: > I know this isn't the best place to ask for help with specific coding > help, ... > > Ideally, I'm hoping one or more of FLORA, LETO, pjacklam, or TELS is > reading this, or at least someone who can put me in direct contact with

Re: Math::BigInt inheritance problems

2011-10-09 Thread Eric Wilhelm
# from Paul Bennett # on Sunday 09 October 2011 07:27: >I'm convinced I'm doing something obviously and stupidly wrong, but I >   can't for the life of me see the forest for the trees. See also > https://rt.cpan.org/Public/Bug/Display.html?id=67204 It looks like you are getting failures from "not

Re: Math::BigInt inheritance problems

2011-10-09 Thread Paul Bennett
On Sun, 09 Oct 2011 10:59:29 -0400, Leon Timmermans wrote: Do you really want your end users to think of IP addresses as numbers? Yes. They are numbers that translate to and from strings in new ways. I want my end users to say "This is a number. I can add to it, subtract from it, bitshi

Re: Math::BigInt inheritance problems

2011-10-09 Thread Leon Timmermans
On Sun, Oct 9, 2011 at 4:44 PM, Paul Bennett wrote: > Ah, but an IP address *is* really a number. An unsigned 128-bit integer, in > fact, with some additional properties that are specific to the semantics of > IP addresses themselves. Do you really want your end users to think of IP addresses as

Re: Math::BigInt inheritance problems

2011-10-09 Thread Paul Bennett
On Sun, 09 Oct 2011 10:34:46 -0400, Leon Timmermans wrote: I think the obvious mistake you're making is using inheritance in the first place. Why are you doing that? Your interface is not «an IP address is really a number», so why would you make it one? Ah, but an IP address *is* really a n

Re: Math::BigInt inheritance problems

2011-10-09 Thread Leon Timmermans
On Sun, Oct 9, 2011 at 4:27 PM, Paul Bennett wrote: > Hi all, > > I know this isn't the best place to ask for help with specific coding help, > but I'm bumping up against what appears to be the edges of Perl normality > here, and I figure there's gotta be at least one person reading this who is >