Barry Schwartz wrote:
> Sidney Reilley II <[email protected]> skribis:
>> Hey...
>>
>> Given:
>> name := "Jose Jimenez"
>> every writes( ! name)
>>
>> The ! operator generates each letter of the string literal.
>> So it dishes out one letter at a time to "write".
>> "write" prints it.
>>
>> I don't see where "every" fits in? I realize that I'm not translating 
>> the code properly.
> 
> Try writing "while" instead of "every" -- you'll get
> JJJJJJJJJJJJ.... because !name starts up and is successful every
> time. Write "every" and the !name generates until it fails.

You suckered me into an endless loop - this means WAR! ;))

I also read that "&fail" will trigger backtracking as in:

writes(! name) + &fail

It's different, but it's all extra cool! L8r...
--
Sid


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to