From: MenTaLguY Date: 2005-11-06T01:26:11+09:00 Subject: Re: lazy.rb --=-NggxC2Ek7RSFnT5oSDMT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2005-11-05 at 14:37 +0900, Trans wrote: > (Why is 'self' being passed to the computation though?) For convenience in circular programming; it's an easier way for the computation to get access to its own future result. Rather than having to do: result =3D nil result =3D promise { ... do something with result ... } It allows simply: promise { |result| ... do something with result ... } -mental --=-NggxC2Ek7RSFnT5oSDMT 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) iD8DBQBDbN05cUNIGiXCc4MRArwkAKDAwqNbbvTCLQRQ3HeIexDTY0So7ACgg2eo RNHfdSoew4IT3eQBzmX4yYE= =WVou -----END PGP SIGNATURE----- --=-NggxC2Ek7RSFnT5oSDMT--