[Borges-users] Transactions (Was: Borges Documentation)

Kaspar Schiess eule at space.ch
Sat Mar 20 00:31:35 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,

The following is rather relevant to your Borges code... 10 points if
anyone tells me what kind of gotcha I ran into today:

blocks = []

for i in (1..10) do blocks[i-1] = proc do puts i end end
blocks[0].call # > 10

(1..10).each do |i| blocks[i] = br do puts i end end
blocks[0].call # > 1

Is this known behaviour ? Should I post this to ruby-talk ?
kaspar - code philosopher

- -- stolen off the net --
All things are possible, except skiing through a revolving door.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAW4LXh6tlx0BWOuARAn3AAJ4zksk3eyeW0B++V4hYaLr189GQkQCfU0tf
oNdSkueIK7Hc2Oe8HRZvEmc=
=fJlr
-----END PGP SIGNATURE-----


More information about the Borges-users mailing list