Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Ring Memory

by rjray (Chaplain)
on Jul 30, 2004 at 23:07 UTC ( #378830=note: print w/replies, xml ) Need Help??


in reply to Ring Memory

This might be more useful as a tied-array implementation, which would allow people to use it directly as an array. Have a look at perltie.

--rjray

Replies are listed 'Best First'.
Re^2: Ring Memory
by fergal (Chaplain) on Jul 31, 2004 at 01:57 UTC
    I hate ties but they are a necessary evil in a language where the basic data types aren't objects. So a tied version is a good idea but please preserve the OO interface too, there's no reason not to have both.

      Yeah, I originally started to write it as a tie, but wound up making it OO because I was going to make it N-dimensional, plus many of my users don't like/are confused by ties, but objects they love. In the end, the module stayed an array, so I'll add the tie interface for the 2.0 version, but I'll leave the OO portion, simply because the tie will be a wrapper around it. This way I can have access to the component functions from an inspection standpoint, if necessary.

      Thanks for the comments!

      "Perl. There is no substitute."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://378830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-05-24 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?