On 26/6/99 3:18 pm DeRobertis <[EMAIL PROTECTED]> wrote:

>>>>put char 3 to -1 of line 7
>>>
>>>But that't not English. I think my idea is better.
>>
>>I'm not sure that I agree: your idea doesn't allow you to get the last
>>three words, or word 2 to the second last, etc:
>>
>>put word -3 to -1 of tVar
>>put word 2 to -2 of tVar
>
>But for getting through the last word -- which in my experiance is very
>common -- it is better.
>
>However, we could have "put last [<expr>] word[s] of ..." and
>"put word <expr> to <expr> from last of...".

I have to say that I've really got used to negative chunk expressions.  
At first it looks a little strange, placing a minus before a number as 
part of a chunk, but when you very quickly get used to it and then it 
makes perfect sense.  -1 is the last word, -2 the second last, etc.  It 
quickly becomes natural.

I'm not sure your example is very clear:

put word 2 to 5 from last of "a b c d e f g"

Does this give you "b c" or "c d e f"?

>>If you just want to go to the end of a container, you can use:
>>
>>put word 2 to word (the number of words in tVar) of tVar
>
>Which makes less sence and is harder than:
>
>       put word 2 to last of...
>
>But what do you think of the different start/stop delimiter idea?

Which one was that again? ;-)

Regards,

Kevin

Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.

Reply via email to