Re: suggestion sequence section
- Posted by jbrown1050 at hotpop.com Feb 07, 2003
- 450 views
On Fri, Feb 07, 2003 at 03:53:57PM -0600, C. K. Lester wrote: > > > s = "abcdefgh" > > x = "1..2" > > ? s[x] > > > > This only borders on string execution. > > I'm sure there's a reason, so I want to know why you can't go: > > s = "abcdefgh" > x = 1 > y = 2 > ?s[x..y] > > or use an eXtractSequence function: > > s = "abcdefgh" > x = "1..2" > ? es( s, x ) > > where x can be an object... you'll just have to parse it out, which won't be > too difficult. > > I think the results you want can be obtained, but maybe not the way you want > to obtain them...? Or you can do what I did and write a parser to convert all s[x] to es(s, x), if you must have that syntax. Or, if you really want it in the interpreter, ask for it in the openeu mailing list, as it seems unlikely that RC will add such new inovative things in the mainstream interpreter. jbrown > > > > TOPICA - Start your own email discussion group. FREE! -- /"\ ASCII ribbon | \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME |