[#5563] Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...>

Lately, I've been thinking about the future of ruby

44 messages 2005/08/19
[#5564] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/19

On 8/19/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:

[#5571] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/19

--- Austin Ziegler <halostatue@gmail.com> wrote:

[#5574] Re: Non-overridable and non-redefinable methods — TRANS <transfire@...> 2005/08/20

Just wanted to add a few things.

[#5581] Re: Non-overridable and non-redefinable methods — Austin Ziegler <halostatue@...> 2005/08/20

On 8/19/05, TRANS <transfire@gmail.com> wrote:

[#5583] Re: Non-overridable and non-redefinable methods — "David A. Black" <dblack@...> 2005/08/20

Hi --

[#5585] Re: Non-overridable and non-redefinable methods — Eric Mahurin <eric_mahurin@...> 2005/08/20

--- "David A. Black" <dblack@wobblini.net> wrote:

[#5609] Pathname#walk for traversing path nodes (patch) — ES <ruby-ml@...>

Here is a small addition to Pathname against 1.9, probably suited

20 messages 2005/08/22

Wandering in the Wilderness Project

From: "Charles E. Thornton" <ruby-core@...>
Date: 2005-08-20 17:57:18 UTC
List: ruby-core #5584
That leaves Question #2 and an Extra Thought

2) 'special_generic_ivar' - a) Is this to trigger Garbage Collection 

                                 ONLY for Special Constant Values?
                           - b) If it is - Is it because there is no real
                                object in Object Space to trigger GC?

2a) 'Special Constant' Values are defined as?

     aa) rb_special_const_p(obj) returns TRUE if 'obj' is
         a Special Constant Value:

           rb_special_const_p(obj)
             VALUE obj
             {
             if (SPECIAL_CONST_P(obj)) return Qtrue;
               return Qfalse;
             }

     bb) SPECIAL_CONST_P(obj) returns TRUE if

           ( IMMEDIATE_P(obj)  ||   !RTEST(obj)  ) is TRUE

                IMMEDIATE_P(obj) is TRUE if   ( (obj) & 03 ) is non-zero

                !RTEST(obj) is TRUE if  obj = is not QNIL & is not QFALSE

         Now am I crazy or does "rb_special_const_p(obj)" return TRUE
         only if:
                 1) lsb 0 = 1       (FIXNUM)
                 2) lsb 1 = 1       (SYMBOL, TRUE, or UNDEF)
                 3) !RTEST == TRUE   if  ( not NIL  and not FALSE)

         WHY are QNIL and QFALSE excluded in a test for
         non-reference VALUES??

         Did I fail LOGIC 101?   (Hope Not, I a Computer Science Degree!)

-- 
GodFather -- 667 Neighbor of the Beast



In This Thread

Prev Next