![]() | Episode 3 puts eval("n", two_times) 1.8.7 vs. 1.9.1 |
|
11 Jun 2010, 07:59
Ingo Gambin (3 posts) |
realized that ruby 1.9.1 does not like your example -:8:in `eval’: wrong argument type Proc (expected Binding) (TypeError) from -:8:in `‘ Does that mean that in ruby 1.9.1 a lambda does not (as it does in ruby 1.8.7) create a binding? I am pretty new to ruby so please forgive me if my questions seem stupid… ;) Thanks in advance and best regards, Ingo |
|
11 Jun 2010, 15:19
Dave Thomas (231 posts) |
I wasn’t away of the change. It looks like 1.9 now requires that you explicitly ask for the binding of the proc as the second argument to eval |
|
15 Jun 2010, 06:46
Ingo Gambin (3 posts) |
Ahh, yes. That looks good and somehow makes sense. As creating a block with Thanks a lot and best regards, Ingo |
| You must be logged in to comment |

