From: Martin Man Date: 2002-05-30T23:07:50+09:00 Subject: Re: creating singleton class from C++ --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 27, 2002 at 09:35:52PM +0900, ts wrote: > >>>>> "M" =3D=3D Martin Man writes: >=20 > M> this approach fails at rb_require, since $: is empty, however it seems= to me > M> strange to set up $: manually... >=20 > You must call ruby_init_loadpath() ahh, I was sure something like this must exist ;) > M> rb_singleton_class (cMy) >=20 > You retrieve what is called the singleton class associated with a class, > i.e. it don't do what you want. OK, so what's the prefered way of creating singleton programatically from C= ? requiring 'singleton' definning class XXX including module 'Singleton' or is there some other way ??? ??? just curious > Guy Decoux thanx, martin --=20 Dennis: Oh, but you can't expect to wield supreme executive power just because some watery tart threw a sword at you! -- Monty Python and the Holy Grail --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE89jH0YgJwJG4GAiMRAsbsAKCZXLrd+hAwDuZmkGR3/K4Qvf4heQCgk1s5 N5CYb4K9UjiDSq5QqLzyN2s= =T5GR -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM--