On Thu, Mar 20, 2008 at 02:20:17PM +0900, Abhi Us wrote:
> Hi i got ur point that ruby do not have types. Then suppose if i have 
> user defined data type for e.g
> 
> map<int,string> MYmap;
> is present in C++ code.How should i create the instances of it in ruby.
> Can i write like
> m1.insert(1,"amey")
> and it will be treated as the map which i have defined..

You probably want to create a typemap between your map type and ruby's
hash type.  You can read about typemaps here:

http://www.swig.org/Doc1.3/Typemaps.html

Paul