
can anyone tell me how to send values from one action to another??? I have main0 = do s <- getLine writeFile "text.txt" s main1 = do .... I'd like to use main0 info on main1 action to build a nXm multisquares box... anyone understood this???? please help... __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com

NS> can anyone tell me how to send values from one action to another??? NS> I have NS> main0 = do s <- getLine writeFile "text.txt" s NS> main1 = do .... NS> I'd like to use main0 info on main1 action to build a nXm multisquares NS> box... anyone understood this???? please help... First of all, main0 and main0 are not actions. Then, there are no special "info" (like, say, local variables) associated with any of them. Are you sure you know what are you doing? PS I have some gut feeling that you might be much better off with Erlang (www.erlang.org), if you want to pass events/datastructures between processes... -- Dmitry Astapov //ADEpt E-mail: adept@umc.com.ua GPG KeyID/fprint: F5D7639D/CA36 E6C4 815D 434D 0498 2B08 7867 4860 F5D7 639D

On Sunday, December 16, 2001, at 02:30 PM, Dmitry Astapov wrote:
NS> can anyone tell me how to send values from one action to another???
NS> I have
NS> main0 = do s <- getLine writeFile "text.txt" s
NS> main1 = do ....
NS> I'd like to use main0 info on main1 action to build a nXm multisquares NS> box... anyone understood this???? please help...
First of all, main0 and main0 are not actions. Then, there are no special "info" (like, say, local variables) associated with any of them. Are you sure you know what are you doing?
PS I have some gut feeling that you might be much better off with Erlang (www.erlang.org), if you want to pass events/datastructures between processes...
... or perhaps O'Haskell: http://www.cs.chalmers.se/~nordland/ohaskell/ -- Johan
participants (3)
-
Dmitry Astapov
-
Johan Nordlander
-
Nuno Silva