[e-lang] Documentation bug for FlexList

David Hopwood david.nospam.hopwood at blueyonder.co.uk
Fri Mar 16 14:24:44 CDT 2007


David Hopwood wrote:
> Kevin Reid wrote:
>>On Mar 15, 2007, at 23:43, David Hopwood wrote:
>>
>>><http://erights.org/javadoc/org/erights/e/elib/tables/FlexList.html>
>>>
>>># void setRun(int start, int bound, EList other)
>>># Enabled: Replace from start..!bound in this list with other.
>>>
>>>? def a := [2, 3, 4].diverge()
>>># value: [2, 3, 4].diverge()
>>>
>>>? a.setRun(0, 0, [1])
>>>? a
>>># value: [1, 2, 3, 4].diverge()
>>>
>>>1. Why is this called 'setRun'? 'insertRun' would make more sense.
>>
>>Note that the name "setRun" is part of the assignment sugar:
>>
>>   a(b, c) := d
>>
>>expands to
>>
>>   a.setRun(b, c, def ares__1 := d)
>>   ares__1
>>
>>, and a(b, c) is of course a.run(b, c).

Oh, you mean that "Run" refers to the verb "to run". I had interpreted
it as the noun "run" meaning a sublist, e.g. a run of cards. That's
English for you :-)

-- 
David Hopwood <david.nospam.hopwood at blueyonder.co.uk>



More information about the e-lang mailing list