Embedding 1.9

D

Dave Thomas

Folks:

I'm working on the "Extending Ruby" chapter (now an appendix) for the
third PickAxe, and I'm finding a whole bunch of conflicting
information. Reading the source, it seems like there's no canonical
way of embedding Ruby in a C application. I have lots of alternatives
that _seem_ to work, but I want to be more authoritative than that.

Does anyone have any pointers to stuff that would help?


Thanks



Dave
 
D

Dave Thomas

Have you checked out VIM? It has ruby embedded and provides an
interface into vim buffers from ruby. HTH. Good luck.

Mark:

I don;t believe it has Ruby 1.9, though.


Dave
 
D

Dave Thomas

case TAG_RAISE:
case TAG_FATAL:


Mark:

Are you manually defining the TAG_xxx values somewhere? eval_intern.h
isn't installed onto the user side on my box.


Dave
 
M

Mark Guzman

Are you manually defining the TAG_xxx values somewhere? eval_intern.h isn't
installed onto the user side on my box.

Dave,
Those are defined locally in if_ruby.c, that seems to be the convention
as the tcltk extension does the same. I wonder if those should be pushed
into ruby.h to ease embedding...?
--mark
 
D

Dave Thomas

Dave,
Those are defined locally in if_ruby.c, that seems to be the
convention
as the tcltk extension does the same. I wonder if those should be
pushed
into ruby.h to ease embedding...?

That'd get my vote. I've copied core on this..

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top