Re: How do I... tie hashes/arrays?

2005-04-25 Thread Thomas Sandlaß
Larry Wall wrote: Depends on whether the user is actually expecting equal MMD there, or tie-breaking between multi methods within the particular class. My gut-level feeling is that they expect the latter. With combined .method and method: syntax we also could have a nice top priority or innermost

Re: How do I... tie hashes/arrays?

2005-04-20 Thread Leopold Toetsch
Larry Wall [EMAIL PROTECTED] wrote: On Tue, Apr 19, 2005 at 02:02:41PM +, Ingo Blechschmidt wrote: : # Possibility #2 : multi sub *postcircumfix:'[', ']'(TiedArray $self, $index) { : # Body as above : } None of those are quite right, because you have to be prepared to

Re: How do I... tie hashes/arrays?

2005-04-20 Thread Larry Wall
On Wed, Apr 20, 2005 at 08:39:02AM +0200, Leopold Toetsch wrote: : Larry Wall [EMAIL PROTECTED] wrote: : On Tue, Apr 19, 2005 at 02:02:41PM +, Ingo Blechschmidt wrote: : : : # Possibility #2 : : multi sub *postcircumfix:'[', ']'(TiedArray $self, $index) { : : # Body as above :

How do I... tie hashes/arrays?

2005-04-19 Thread Ingo Blechschmidt
Hi, quoting an old post from Luke (http://xrl.us/ftet): Ctieing is going to work quite differently, from what I hear. So it might be possible to overload any function to call a special version when your type of array is used. You just have to write all the special versions.

Re: How do I... tie hashes/arrays?

2005-04-19 Thread Larry Wall
On Tue, Apr 19, 2005 at 02:02:41PM +, Ingo Blechschmidt wrote: : Hi, : : quoting an old post from Luke (http://xrl.us/ftet): : Ctieing is going to work quite differently, from what I hear. : So it might be possible to overload any function to call a : special version when your