From: "Mauricio Fernández" Date: 2002-08-11T18:39:39+09:00 Subject: Re: Embeding Ruby in C++ code. On Sun, Aug 11, 2002 at 04:50:54AM +0900, Kostas Katsamakas wrote: > I have written the following code: [...] > 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? Maybe you need to use the C linkage conventions, ie 'extern "C"'. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Try to remove the color-problem by restarting your computer several times. -- Microsoft-Internet Explorer README.TXT