Re: Embeding Ruby in C++ code.

From: nobu.nokada@...
Date: 2002-08-11 02:57:08 UTC
List: ruby-core #317
Hi,

At Sun, 11 Aug 2002 04:50:54 +0900,
Kostas Katsamakas wrote:
> The command gets evaluated ok but something seems to be wrong with the
> argument i get in the
> do_something function. If i use the TYPE(str) macro i get as a result 2
> which equals T_OBJECT
> instead of T_STRING as i expected. What am i doing wrong?

You forget "self".

  VALUE do_something(VALUE self, VALUE str)

-- 
Nobu Nakada

In This Thread

Prev Next