I want to parse something (from specific subset) that specified inside of [], and pass control to default `[]() operator when this something doesn't fit to specific rules.
But you can't pass something to the default [] operator which doesn't fit to the rules of the default [] operator. So it's your code which is faulty.
But I wonder why `->() was called... It shouldn't be there (at least I see no reason why it should).
The default [] implementation uses the -> implementation to save code duplication, since they have the same semantics (on objects).
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-11-25 21:31: Subject: Re: A bug(?) in lfun::`[]() handling
On Tue, Nov 25, 2003 at 09:05:03PM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
there, although I'm not sure what. What semantics did you intend for your [] operator?
I want to parse something (from specific subset) that specified inside of [], and pass control to default `[]() operator when this something doesn't fit to specific rules.
But I wonder why `->() was called... It shouldn't be there (at least I see no reason why it should).
Regards, /Al
/ Brevbäraren
pike-devel@lists.lysator.liu.se