From: "Asbjørn Reglund Thorsen" Date: 2005-01-28T01:56:24+09:00 Subject: [Newbie] Extending Ruby ---259931839-602644157-1106844967=:1262 Content-Type: MULTIPART/MIXED; BOUNDARY="-259931839-602644157-1106844967=:1262" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---259931839-602644157-1106844967=:1262 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE I am quite new to extending Ruby, and I have read the README.EXT. I am wondering how to translate (from the code below):=20 "PyList_SetItem($result, i, PyFloat_FromDouble((double) p(i+1)));" Into Extending Ruby syntax. (This code is used for typemapping in SWIG/Python) %typemap(out) Ptv_double& { Ptv_double& p=3D (*$1); int size =3D p.size(); $result =3D PyList_New(size); for (int i=3D0; i ---259931839-602644157-1106844967=:1262-- ---259931839-602644157-1106844967=:1262--