Re: find_from and match_from

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> My tuppenceworth:
> I will vote for this on two independent conditions:
> 
> 1) Keep one opcode, just make it have 3 params, and put a 1 in there as and
> when needed (details aside, see PS).

This is how it should have been done from the outset.

> 2) At least consider optional parameters, ie in hll it would be eg:
> }}}
<eucode>
> function find(object x, sequence s, integer i=1)
> ...
> end function
> </eucode>
{{{

> The "=1" makes it possible to code find(x,s) *or* find(x,s,i).

This would be a great idea too.

However, the simplest will be to add new opcodes.

I would use this feature frequently as I currently use slower methods now.

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu