[#1147] Copying RVALUE — why the lucky stiff <ruby-core@...>

Hello, everyone. Hope you are all doing well.

18 messages 2003/06/17
[#1155] Re: Copying RVALUE — matz@... (Yukihiro Matsumoto) 2003/06/20

Hi,

[#1157] Re: Copying RVALUE — why the lucky stiff <ruby-core@...> 2003/06/20

Yukihiro Matsumoto (matz@ruby-lang.org) wrote:

[#1173] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...>

Hi, I'm new to this mailing list so I don't know the procedure for

15 messages 2003/06/22
[#1174] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — nobu.nokada@... 2003/06/22

Hi,

[#1175] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...> 2003/06/22

On Sun, 2003-06-22 at 05:36, nobu.nokada@softhome.net wrote:

[#1176] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — nobu.nokada@... 2003/06/22

Hi,

[#1193] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...> 2003/06/25

On Sun, 2003-06-22 at 07:41, nobu.nokada@softhome.net wrote:

[#1177] Re: In 1.8.0 nil.to_s is not the same as "" — ts <decoux@...>

14 messages 2003/06/22

Re: [Patch] class.c code cleanup (rb_class_*_instance_methods)

From: nobu.nokada@...
Date: 2003-06-25 07:01:51 UTC
List: ruby-core #1194
Hi,

At Wed, 25 Jun 2003 12:56:44 +0900,
Matthew Dempsky wrote:
> > "from 1.8.1"?
> 
> I actually used "as of 1.8.1" because that seemed the clearest to me
> (from didn't quite fit in my mind).  So, here's my second attempt at a
> simple patch (eventually I'll have to get one right :)

Although I'm not an English speaker and am not sure, it sounds
better.

>  #if RUBY_VERSION_CODE < 181
> -	rb_warn("instance_methods parameter will default to 'true' after 1.8.1");
> +	char buffer[BUFSIZ];
> +	strcpy(buffer, rb_id2name(rb_frame_last_func()));
> +	strcat(buffer, " parameter will default to 'true' as of 1.8.1");
> +	rb_warn(buffer);
>  #else

The first argument to rb_warn() is printf-like format, so you
don't need concatination.

-- 
Nobu Nakada

In This Thread