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

Jean-Philippe Encausse wrote:
> 1. So there is no longer $continue and I have to use return
Yes, 1.5.0 is the last release to support this construct _in Enumerable_.

> 2. I understand the behavior of return because it is a function given to 
> each() but It's not the same behavior like in other programming language
OFC it isn't. I have to say it again, you're using Enumerable there, which
is by not a "normal loop" (which - obviously - would work as you expect).
Please read Enumerable docs, it really rocks once you're getting comfortable
with it: http://prototypejs.org/api/enumerable

> That's more complicated. I hoped to return directly entry.value;
Sorry, that's the way Enumerable works. :)

cheers
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----

iD8DBQFFwkWBtZHp/AYZiNkRApnTAJ48nKgnHG686ul9qOrs0Hn89fu4nACfXB3J
ewp7QoPCNf8ADEPP7U/8s0M=
=+c22
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to