[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Re: [ ruby-Bugs-4151 ] Stack trace doesn't include class

From: Mathieu Bouchard <matju@...>
Date: 2006-04-19 18:44:45 UTC
List: ruby-core #7742
On Wed, 19 Apr 2006, Timothy J. Wood wrote:
> On Apr 18, 2006, at 4:01 PM, Eric Hodel wrote:
> > I don't understand how just a file name and line number are ambiguous when
> > reading a backtrace.
> 
>   If a class includes a module, then the reader of the backtrace might
> like to know which class ended up using the code in the module.

This is often mentioned when the object is written as a string, but not
always so. (I often would like the class name of the receiver to be
printed)

However, I don't think that this is what Oren is asking for. I think he
wants "class A; def foo; raise end end" to show up as "A#foo" in the error
message, and "def A.foo; raise end" to show up as "A.foo", instead of just 
as "foo" in both cases.

> > Adding the class may be misleading.  A method may belong to an object but
> > not the object's class.
>   Can't this be detected and reported as well?

Yeah, but Ruby could at the same time provide an alternate version of
"raise" which would take a argument of class StrawMan and behave in a more
misleading manner, for those who'd rather have it that way.

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - t駘:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montr饌l QC Canada


In This Thread