Here is a very quick explanation about move() and tab().
You can think of move() as move_relative(), and tab() as move_absolute().
Both of them move the "current" position (&pos) of the string scanning
environment, and both of them return the string between the old position
and the new position. When you say:
move(5)
you move &pos five characters/locations forward, but when you say
tab(5)
you actually move the position to 5. For example, if you have the string
"Unicon" and &pos is 3 (pointing at i),
move(4) gives "icon"
tab(4) gives "i"
tab() is the one to use usually with functions like many(), upto() and
any(), because the all give absolute positions in the string scanning
environment subject.
Unicon/Icon books cover these functions very well.
Cheers,
Jafar
On Sun, Mar 10, 2013 at 1:19 PM, Jafar Al-Gharaibeh <to.ja...@gmail.com>wrote:
> Duke,
>
> It does! I wanted to double check and make sure what to say, but I had to
> run to the airport. I will explian later if no one beats me to it.
>
> --Jafar
> On Mar 10, 2013 11:55 AM, "Duke Normandin" <dukeofp...@lavabit.com>
> wrote:
>
>> On Sun, 10 Mar 2013 10:42:25 -0500
>> Jafar Al-Gharaibeh <to.ja...@gmail.com> wrote:
>>
>> > Bruce,
>> >
>> > After looking at your program and trying to refresh my memory
>> > in string scanning functions, I believe your problem is using
>> > move() in place of tab(). After doing that change, your program
>> > run to completion with no issues on m sides.
>> >
>> > Cheers,
>> > Jafar
>>
>>
>> Hey Jafar ...
>>
>> So doesn't the original issue beg a quick tut on the difference
>> between tab() and move()? :D
>>
>> --
>> Duke
>>
>>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group