BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is possible implement Erlang trhead concepts in Delphi?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
mamcx
Guest





PostPosted: Wed Aug 23, 2006 10:20 pm    Post subject: Is possible implement Erlang trhead concepts in Delphi? Reply with quote



I'm looking for ways to improve the code of my Delphi applications, and
I'm visiting other languages like python, ruby.

Some time ago I look at erlang
(http://en.wikipedia.org/wiki/Erlang_programming_language) and think

Pid = spawn(Mod, Func, Args) % execute function Func as new process
Pid = spawn(Node, Mod, Func, Args) % execute function Func in remote
node Node

Pid ! a_message % send message to the process (asynchronously)

receive % receive message sent to this process
a_message -> do_something;
{data, Data_content} -> do_something_else(); % This is a tuple of a
type atom and some data
{hello, Text} -> io:format("Got hello message: ~s", [Text]);
{goodbye, Text} -> io:format("Got goodbye message: ~s", [Text])
end.

Is easy to grasp...

Any reason this can't do done in Delphi?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.