Sidney Reilley II wrote:
> The program works, but for some reason printout() never gets called. 
> Can anybody spot why? TIA....

Hmmm, it appears to run fine for me (note the missing space in
the output of print_out(), though!):
-------------------------------------------------
->unicon foo2.icn
Parsing foo2.icn: ....
/opt/bin/icont -c   -O foo2.icn /tmp/uni96208322
Translating:
foo2.icn:
   main
   word_length
   printout
No errors
/opt/bin/icont  foo2.u
Linking:
->foo2
this is a test
4
2
1
4
There are 11­letter words.
There are 12­letter words.
There are 03­letter words.
There are 24­letter words.
There are 05­letter words.
There are 06­letter words.
There are 07­letter words.
There are 08­letter words.
There are 09­letter words.
There are 010­letter words.
->
------------------------------------------------
I get the same behavior with Icon instead of Unicon, which is
no surprise.

What happens when you run it?  Also, trying turning tracing
on to see what happens.  (You can do so under Unix/Linux by
setting the TRACE environment variable to -1.  Under any
OS you get the same effect by embedding "&trace := -1" at
the start of main().)  Here's what I get with tracing on:
------------------------------------------------------
->foo2
              :       main()
this is a test
foo2.icn     :    3  | word_length("this is a test")
4
2
1
4
foo2.icn     :   15  | word_length returned &null
foo2.icn     :    4  | printout()
There are 11­letter words.
There are 12­letter words.
There are 03­letter words.
There are 24­letter words.
There are 05­letter words.
There are 06­letter words.
There are 07­letter words.
There are 08­letter words.
There are 09­letter words.
There are 010­letter words.
foo2.icn     :   22  | printout returned &null
foo2.icn     :    5  main failed
------------------------------------------------

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