Bug #2211
eval Documentation Claims Proc Accepted for Binding
| Status: | Closed | Start date: | 10/14/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | core | |||
| Target version: | 1.9.2 | |||
| ruby -v: | ruby 1.9.2dev (2009-10-04 trunk 25216) [i686-linux] |
Description
`eval`'s documentation wrongly claims it accepts a Proc for the binding argument. This patch fixes the RDoc.
Associated revisions
* vm_eval.c (eval_string): rdoc fix [ruby-core:26086]
History
Updated by marcandre (Marc-Andre Lafortune) over 2 years ago
- Category changed from DOC to core
- Assignee set to matz (Yukihiro Matsumoto)
Patch applied in r25335 for now. Should eval accept a Proc? It might be preferable not to, since it might be clearer to pass some_proc.binding then only some_proc.
Updated by marcandre (Marc-Andre Lafortune) over 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r25335. Run Paint, thank you for your reporting of the issue. You have greatfully contributed toward Ruby. May Ruby be with you.
Updated by marcandre (Marc-Andre Lafortune) over 2 years ago
- Status changed from Closed to Open
Updated by marcandre (Marc-Andre Lafortune) about 2 years ago
- Status changed from Open to Closed
Updated by marcandre (Marc-Andre Lafortune) about 2 years ago
- Status changed from Closed to Open
- Priority changed from Low to Normal
- Target version set to 1.9.2
Since Ruby 1.8 does allow passing a Proc, we should agree on the desired behavior.
Updated by mame (Yusuke Endoh) about 2 years ago
- Status changed from Open to Closed
Hi, Ko1 asked matz to delete this feature for ease of YARV implementation, and matz approved. [ruby-dev:34915] So this is intended change. I close this ticket. Ko1 also invited public opinion about the feature (is there people who want this feature?). [ruby-dev:34917] Only akr answered that he want for his library (htree), and the discussion stopped. If you want the feature, please register new ticket with reason to Feature tracker. -- Yusuke Endoh <mame@tsg.ne.jp>