[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Re: Including a module twice

From: Yukihiro Matsumoto <matz@...>
Date: 2004-11-01 00:41:54 UTC
List: ruby-core #3673
Hi,

In message "Re: Including a module twice"
    on Mon, 1 Nov 2004 08:47:00 +0900, Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
|
|I know Ruby tests whether a module is already included, and doesn't
|include it again when it was included already. However the following code
|circumvents that check (swap the two includes and Ruby does catch it):

This small patch may improve the situation:

--- eval.c	30 Oct 2004 06:56:17 -0000	1.723
+++ eval.c	1 Nov 2004 00:40:47 -0000
@@ -414,3 +414,2 @@ rb_get_method_body(klassp, idp, noexp)
 	/* store in cache */
-	if (BUILTIN_TYPE(origin) == T_ICLASS) origin = RBASIC(origin)->klass;
 	ent = cache + EXPR1(klass, id);

-- 
							matz.

In This Thread