From: MenTaLguY Date: 2006-02-23T14:40:25+09:00 Subject: Re: [ANN] lazy.rb 0.9.5 -- transparent futures! --=-js6L7LfoChj/xjv7RFmB Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2006-02-23 at 10:14 +0900, Daniel Nugent wrote: > table_name =3D "CUSTOMERS" > x =3D promise {table_name.dup} > table_name =3D "MONKEYS" > puts x > =3D>"CUSTOMERS" >=20 > Would avoid the problem. Actually, no. String#dup wouldn't get called until the promise was demanded, by which time table_name refers to a different string. -mental --=-js6L7LfoChj/xjv7RFmB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD/UrySuZBmZzm14ERAnpmAKCj0gkz97gRRMdarFX4Ss+gxnAXPACgl+O3 LVCzU8RbTCFgJY4xg4pO4YQ= =cDao -----END PGP SIGNATURE----- --=-js6L7LfoChj/xjv7RFmB--