From: Dennis Schridde Date: 2005-09-07T23:04:30+09:00 Subject: Embedding Ruby into C --nextPart37547117.XLhn08iJld Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! I am a Ruby newb(using it since a few days and read the book just a few wee= ks=20 ago) and would like to embed Ruby into a C program. I read the chapter about it in the PickAxe and this Wiki article:=20 http://www.rubygarden.org/ruby?EmbedRuby The problem is that the PickAxe does some fancy this (it can't be that=20 complicated, can it?) and the Wiki doesn't say anything definitive at all. I'd like to get an example, that is as easy as possible, will definetely wo= rk=20 with Ruby 1.8 and could be called a "good way". It should define a C function, load a Ruby script which defines a Ruby=20 function, call the Ruby function from C and call the C function from Ruby. It should explain different return/parameter types and multiple parameters. The C program should report if the Ruby script had a bug in it. All in complete Ruby/C files, please. Thanks in advance, Dennis --nextPart37547117.XLhn08iJld Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.18 (GNU/Linux) iD8DBQBDHvNsNNHWXccyBJIRAopTAJ9Gkywzwe7e8JtgkTTByEzO1vII0wCgpWkO LhgXt5+/NoR3iqXG9piO3mI= =dtiV -----END PGP SIGNATURE----- --nextPart37547117.XLhn08iJld--