PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Embedding 1.9
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Embedding 1.9

Réponse
 
LinkBack Outils de la discussion
Vieux 07/01/2008, 21h44   #1
Dave Thomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Embedding 1.9

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 ?


Thanks



Dave

  Réponse avec citation
Vieux 08/01/2008, 03h23   #2
Dave Thomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Embedding 1.9


On Jan 7, 2008, at 7:41 PM, Mark Guzman wrote:

> 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

  Réponse avec citation
Vieux 08/01/2008, 07h08   #3
Dave Thomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Embedding 1.9


On Jan 8, 2008, at 12:20 AM, Mark Guzman wrote:

> 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

  Réponse avec citation
Vieux 08/01/2008, 17h05   #4
Mark Guzman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Embedding 1.9

<(08/01/08 16:08) Dave Thomas>
> 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

--
Those the gods wish to destroy they call promising.
blog: http://hasno.info

  Réponse avec citation
Vieux 08/01/2008, 18h03   #5
Dave Thomas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Embedding 1.9


On Jan 8, 2008, at 11:05 AM, Mark Guzman wrote:

>> 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...?


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

Dave

  Réponse avec citation
Vieux 09/01/2008, 15h35   #6
Paul Brannan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Embedding 1.9

On Wed, Jan 09, 2008 at 03:03:49AM +0900, Dave Thomas wrote:
> > 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..


I submitted a bug for this a while ago:

http://rubyforge.org/tracker/?func=d...8&group_id=426

I see no reason for this to be an opaque value.

Currently I use the #ifndef trick to get the TAG_ macros.

Paul


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h49.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14185 seconds with 14 queries