[#1320] [MethodIndex] Bug and question — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

32 messages 1998/01/23
[#1321] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/23

まつもと ゆきひろです

[#1323] Re: [MethodIndex] Bug and question — keiju@... (Keiju ISHITSUKA) 1998/01/23

けいじゅ@日本ラショナルソフトウェアです.

[#1332] Re: [MethodIndex] Bug and question — keiju@... (Keiju ISHITSUKA) 1998/01/27

けいじゅ@日本ラショナルソフトウェアです.

[#1333] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/27

まつもと ゆきひろです

[#1334] Re: [MethodIndex] Bug and question — keiju@... (石塚圭樹 ) 1998/01/27

けいじゅ@日本ラショナルソフトウェアです.

[#1351] Re: [MethodIndex] Bug and question — keiju@... (石塚圭樹 ) 1998/01/29

けいじゅ@日本ラショナルソフトウェアです.

[#1353] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/29

まつもと ゆきひろです

[#1354] Re: [MethodIndex] Bug and question — keiju@... (石塚圭樹 ) 1998/01/29

けいじゅ@日本ラショナルソフトウェアです.

[#1355] Re: [MethodIndex] Bug and question — matz@... (Yukihiro Matsumoto) 1998/01/30

まつもと ゆきひろです

[ruby-dev:1228] Re: var arg method

From: WATANABE Hirofumi <watanabe@...>
Date: 1998-01-06 10:23:11 UTC
List: ruby-dev #1228
わたなべです.

Kikutani Makoto <kikutani@jdc.ericsson.se> writes:

:>   static VALUE
:>   slsmg_printf(argc, argv, self)
:>       int argc;
:>       VALUE *argv;
:>       VALUE self;
:>   {
:>      VALUE str = f_sprintf(argc, argv);
:>      SLsmg_printf("%s", RSTRING(str)->ptr);
:>      return Qnil;
:>   }
:> 
:> で代用できるかも.

効率を考えると
        SLsmg_printf("%s", RSTRING(str)->ptr);
は
        SLsmg_write_string(RSTRING(str)->ptr);
がよさそうです. SLsmg_printf は内部的に char p[1000]; に 
vsprintf してから SLsmg_write_string してるので.
でもこのままだとフォーマッティング方法が ruby 流になるけどそ
れはいいのかな? 例えば "%b" とか. 便利だからいいか ;-)

-- 
わたなべひろふみ

In This Thread