On 26 February 2010 08:32, <[email protected]> wrote: > james > 2010-02-25 11:32:11 -0800 (Thu, 25 Feb 2010) > 230 > Clarify the documentation for "replace char" "delete char" and "ascii from > string" > to specify that the position is indexed starting with 1 and going to "string > length" > (as opposed to starting at 0 and going to string length -- 1) > --- > U wip/docs/plotdict.xml > U wip/docs/plotdictionary.html
So I suppose that when string indexing using array subscripts is added, it'll disagree with the existing string commands. Since everything else in the engine uses 0 to num - 1 indexing, it would be really inconsistent to make array indexing different, and it would be extremely inconsistent to make string indexing an exception. Actually, "ascii from string", "string length", and if strings are mutable, "replace char" will all have replacements, so will be obsolete. Guess we could add either a remove-from-array command and overload it to act on strings, or python's "del foo[i]" to replace "delete char". _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
