[#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:28:42 UTC
List: ruby-core #7741
On Wed, 19 Apr 2006, Eric Hodel wrote:

> > The stack trace provided by the Ruby engine uses a hard-wired template
> > including the source file name, line number and the name of the
> > method. For some reason, it doesn't contain the name of the class
> > containing the method.
>
> I don't understand how just a file name and line number are ambiguous
> when reading a backtrace.

If it were only a matter of disambiguating, then the name of the method 
would be useless 99% of the time.

> Adding the class may be misleading.  A method may belong to an object
> but not the object's class.

Then the object's class is not the object's class, and the method that 
belongs to an object really belongs to the object's singleton class 
because methods can't really belong to objects, and then the object's 
singleton class is sometimes seen as the object's class except when it's 
not. (Ruby is misleading already.)

You don't *have* to read the word "class" the wrong way. It doesn't always 
mean a non-singleton class and it doesn't even always mean an instance 
of the Class class. it can be a non-Class Module too, because modules 
are those second-class citizens that work the same way classes do 
except that they don't have the right to sit down when they take the 
bus.

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


In This Thread