From: Dennis Schridde Date: 2005-09-08T02:13:31+09:00 Subject: Re: Embedding Ruby into C --nextPart1756300.IjOIxVPVu1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Mittwoch, 7. September 2005 16:04 schrieb Dennis Schridde: > Hi! > I am a Ruby newb(using it since a few days and read the book just a few > weeks ago) and would like to embed Ruby into a C program. > > I read the chapter about it in the PickAxe and this Wiki article: > http://www.rubygarden.org/ruby?EmbedRuby > > The problem is that the PickAxe does some fancy this (it can't be that > 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 > work 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 > function, call the Ruby function from C and call the C function from Ruby. > It should explain different return/parameter types and multiple parameter= s. > 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 P.S. I forgot to mention that this should/will replace the above mentioned= =20 Wiki. So the best would be if the base example would be pretty simple and more=20 features were added to it in additional examples. --nextPart1756300.IjOIxVPVu1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.18 (GNU/Linux) iD8DBQBDHx+5NNHWXccyBJIRAsxpAKCs9+yP+HKi880vSLo/gLv7yW/dJACg4aKM zQ0k6Z6+/PkamAjufUrC464= =irNU -----END PGP SIGNATURE----- --nextPart1756300.IjOIxVPVu1--