Re: listed subscripting

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

ags wrote:
> 
> Antonio Alessi wrote:
> > An expression like:
> > }}}
<eucode>
> > newString­ =
> > originalString[1..2]&"INSERT"&originalString[5..9]&originalString[27..$]
> > </eucode>
{{{

> > could simply become:
> > }}}
<eucode>
> > newString­ = originalString[1..2]&"INSERT"&[5..9]&[27..$]
> > </eucode>
{{{

> > It should be plain to implement, I mean more useful than complicated...
> 
> I don't think that would work very well.  What if you wanted to use multiple
> strings like:
> 
> }}}
<eucode>
> newString = originalString[1..2] & "INSERT" & otherString[3..5] & [5..9]
> </eucode>
{{{

> What would the "[5..9]" refer to?

Hi Gary,

The last declared sequence, of course. I don't see where the problem arises.
If I had put to you the same question, which could have been you answer?

antonio

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

Search



Quick Links

User menu

Not signed in.

Misc Menu