On Sun, Jul 20, 2003 at 07:01:30PM +0900, ts wrote: > >>>>> "M" == Mauricio =?iso-8859-1?Q?Fern=E1ndez?= <Mauricio> writes: > > M> It's impossible AFAIK within plain Ruby. You can however write an > M> extension to do so, by doing: > > svg% cat inpf.c [code] did you cut & paste my code, or is my training to think like you bringing its first results? (the code is char-per-char identical in everything but 'inpf' :-) > svg% > > svg% ruby -rinpf -e 'a = ""; p get_address(a); p 2*a.id' > 1074371868 > 1074371868 > svg% I meant impossible if #__id__, #object_id & #id are redefined. > p.s. : inpf = "impossible n'est pas francais" :-) ;-) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Not only Guinness - Linux is good for you, too. -- Banzai on IRC