From: Woo-Kyoung Noh Date: 2007-07-06T15:05:43+09:00 Subject: ruby classes in the erlang world those whom interested in both ruby and erlang, I'd like to showing my small work. I've been implemented a bit of ruby classes (String, Array, Range, Regexp ,,,) using by erlang. so could do something like A = ruby:new([1,2,3]), Stack = ruby:new([]), [1,2,3] = (A(each))(fun(X) -> Stack({push,X+1}) end), [2,3,4] = Stack(value), I sent this to the erlang mailing list on a couple of weeks ago, and got no replys. well, I felt that erlang programmers don't like this :) http://www.erlang.org/pipermail/erlang-questions/2007-June/027592.html so what I really want to do is that you know, erlang's powerful concurrency. check this working between two erlang nodes. $ erl -sname b (b@woo-kyoung-nohs-computer)1> A=ruby:new([]). #Fun (b@woo-kyoung-nohs-computer)2> A({register, a}). true $ erl -sname c (c@woo-kyoung-nohs-computer)1> N='Node':'Node'({a, 'b@woo-kyoung-nohs-computer'}). #Fun (c@woo-kyoung-nohs-computer)2> N({push,1}). [1] (b@woo-kyoung-nohs-computer)3> A(value). [1] (b@woo-kyoung-nohs-computer)4> A({push,2}). (c@woo-kyoung-nohs-computer)3> N(value). [1,2] you could get the code from svn co http://wookay.googlecode.com/svn/trunk/erlang/ruby/ cd ruby make test thank you. have a good one. -- Posted via http://www.ruby-forum.com/.