in reply to Re: more on tying localtime
in thread more on tying localtime

This suffers of the very problem I described. It is evil to bind to an array when it is in effect a (here multibase) counter because it can wrap under you.

-- stefp

Replies are listed 'Best First'.
Re: Re: Re: more on tying localtime
by jryan (Vicar) on Sep 28, 2001 at 06:46 UTC
    Yes, of course. That's why no one uses tied arrays :) He just wanted to know how to do one, so I gave him one way to solve the problem. I'm pretty confident that he won't be using it in regular practice, but its still a good way to learn about tied variables and classes.