While peering closely at the ADTs Andreas Pettersson has been working on, I noticed that CircularList implements the method
int _search( mixed value, int|void start )
While there is no such LFUN in Pike today, perhaps there ought to be?
I think so, at least as far as that search() makes use of such a function. Whether it also should be an lfun or not is another matter. They are somewhat faster to call, but otoh each new lfun increases the size of every program.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-06-25 17:17: Subject: _search LFUN?
While peering closely at the ADTs Andreas Pettersson has been working on, I noticed that CircularList implements the method
int _search( mixed value, int|void start )
While there is no such LFUN in Pike today, perhaps there ought to be?
/ Johan Sundström (folkskådare)
I think a fake lfun, like _random and _sqrt, is enough.
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-07-01 21:19: Subject: _search LFUN?
I think so, at least as far as that search() makes use of such a function. Whether it also should be an lfun or not is another matter. They are somewhat faster to call, but otoh each new lfun increases the size of every program.
/ Martin Stjernholm, Roxen IS
pike-devel@lists.lysator.liu.se