Jafar Al-Gharaibeh wrote:
> "while word_length(read())"   is an infinite loop because  the procedure 
> word_length() always succeeded ( return at the end).

Actually, no.  Since the read() will fail at some point in the loop
[unless the input is *really* long!], the expression as a whole will
fail (without even calling word_length()) and the loop will terminate.
The stop("Bye") is the big problem.

There are also issues with the way the word-count loop is implemented,
it fails to count accurately on all sorts of input!

-- 
Steve Wampler -- [email protected]
The gods that smiled on your birth are now laughing out loud.

------------------------------------------------------------------------------
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