Re: [Update] Port match to new dup, clone framework

From: Michal Rokos <m.rokos@...>
Date: 2002-08-30 08:23:03 UTC
List: ruby-core #391
Hello,

On Thu, Aug 29, 2002 at 01:22:18AM +0900, Yukihiro Matsumoto wrote:
> OK if you add class check to become method (orig may not be MatchData),
> like this:
>     if (!rb_obj_is_instance_of(orig, rb_obj_class(obj))) {
> 	rb_raise(rb_eTypeError, "wrong argument class");
>     }

	Added and commited.

	Thank you.

		Michal

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                         Czech Technical University, Prague
E-mail:m.rokos@sh.cvut.cz      ICQ:36118339      Jabber:majkl@jabber.cz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

In This Thread

Prev Next