Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2385
| From | Adam Prescott <adam@aprescott.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Proc#== behaviour (from Ruby-Core) |
| Date | 2011-04-06 08:11 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <BANLkTimwasjyAVmRQDAc8U1hm3qTp6fiaA@mail.gmail.com> (permalink) |
[Note: parts of this message were removed to make it a legal post.] I did ask this question on Ruby-Core a few days ago, but no-one has replied back, so I thought it might get more love here. (Perhaps I'm being stupid.) I'll just copy it verbatim from there. If cross-posting it is wholly objectional, I'm happy to wait, although this problem is holding up some of my code. -- I've encountered a problem when using Proc#== (with both lambdas and procs) in my code, where the result does not match up with what the documentation says. 1.9.2 differs from 1.8.7 in result and in the source code, so that suggests attention has been given to the method, at least. It was suggested that ruby-core was the place to go for this. Here's a paste of the problem, with full RUBY_DESCRIPTIONs: https://gist.github.com/899026 I've included lambda, proc, and Proc.new variants just for completion, even though I realise proc is an alias for lambda or Proc.new, depending. At the very least, perhaps someone could explain why this is by design, if it's not a bug. Apologies if there's an open issue for this on redmine; the site is currently not working for me (again), and I couldn't find anything online mentioning this.
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar | Unroll thread
Proc#== behaviour (from Ruby-Core) Adam Prescott <adam@aprescott.com> - 2011-04-06 08:11 -0500
Re: Proc#== behaviour (from Ruby-Core) Adam Prescott <adam@aprescott.com> - 2011-04-06 15:20 -0500
Re: Proc#== behaviour (from Ruby-Core) Gary Wright <gwtmp01@mac.com> - 2011-04-06 15:50 -0500
Re: Proc#== behaviour (from Ruby-Core) 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-06 18:17 -0500
Re: Proc#== behaviour (from Ruby-Core) Adam Prescott <adam@aprescott.com> - 2011-04-06 18:41 -0500
Re: Proc#== behaviour (from Ruby-Core) Gary Wright <gwtmp01@mac.com> - 2011-04-06 19:52 -0500
Re: Proc#== behaviour (from Ruby-Core) Gary Wright <gwtmp01@mac.com> - 2011-04-06 19:45 -0500
csiph-web