On Fri, 24 Apr 2009 12:07:39 +0200, Yves Jaradin
<[email protected]> wrote:

>I shouldn't have sent code without first testing it. Here is a corrected 
>(and tested) version:

No problem; thanks for the update.

>File1.oz:
>local S P in
>   thread
>      S={New Open.socket server(port:P)}
>   end
>   {Wait P}
>   {Show P}
>   {Show {S read(list:$)}}
>   {S close()}
>   {Show ok}
>   {Delay 5000}
>end
>
>File2.oz:
>local S P in
>   P=1234 %Replace with port number given by running File1.oz
>   S={New Open.socket client(port:P)}
>   {S write(vs:"\n")}
>   {S close()}
>   {Show ok}
>   {Delay 5000}
>end

Here is the output:

>benja...@200706-05 /cygdrive/c/Documents and Settings/Benjamin/My 
>Documents/Programming Practice/Mozart-Oz/Functions/Bug Test-related Files
>$ ozc --include ./BaseEnv.oz File1.oz
>1289
>
>benja...@200706-05 /cygdrive/c/Documents and Settings/Benjamin/My 
>Documents/Programming Practice/Mozart-Oz/Functions/Bug Test-related Files
>$ ozc --include ./BaseEnv.oz File2.oz
>ok

This seems to be an Emacs-related error.

What do you think would be best to do now?

-- Benjamin L. Russell
-- 
Benjamin L. Russell  /   DekuDekuplex at Yahoo dot com
http://dekudekuplex.wordpress.com/
Translator/Interpreter / Mobile:  +011 81 80-3603-6725
"Furuike ya, kawazu tobikomu mizu no oto." 
-- Matsuo Basho^ 
-- 
Benjamin L. Russell  /   DekuDekuplex at Yahoo dot com
http://dekudekuplex.wordpress.com/
Translator/Interpreter / Mobile:  +011 81 80-3603-6725
"Furuike ya, kawazu tobikomu mizu no oto." 
-- Matsuo Basho^ 

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to