[#615] [MethodIndex] <!-- hhmts ... — keiju@... (Keiju ISHITSUKA)

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

13 messages 1997/10/01

[#645] pack/unpack base64 — WATANABE Hirofumi <watanabe@...>

わたなべです.

18 messages 1997/10/06

[#654] [BUG?] ruby -r nothing-file — keiju@... (Keiju ISHITSUKA)

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

29 messages 1997/10/06
[#661] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#662] Re: [BUG?] ruby -r nothing-file — WATANABE Hirofumi <watanabe@...> 1997/10/07

わたなべです.

[#663] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#666] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

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

[#667] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#669] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

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

[#670] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#671] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

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

[#672] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#673] Re: [BUG?] ruby -r nothing-file — WATANABE Hirofumi <watanabe@...> 1997/10/07

わたなべです.

[#674] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#675] Re: [BUG?] ruby -r nothing-file — WATANABE Hirofumi <watanabe@...> 1997/10/07

わたなべです.

[#676] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

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

[#677] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#678] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

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

[#679] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#770] printn means print and newline — HYOUDOU Kouichi /note <hyoudo@...>

兵藤です%思い付きなのですが

19 messages 1997/10/28
[#771] Re: printn means print and newline — shugo@... (Shugo Maeda) 1997/10/28

前田です。

[ruby-dev:780] Re: printn means print and newline

From: matz@... (Yukihiro Matsumoto)
Date: 1997-10-31 01:41:11 UTC
List: ruby-dev #780
まつもと ゆきひろです

In message "[ruby-dev:779] Re: printn means print and newline"
    on 97/10/31, HYOUDOU Kouichi /note <hyoudo@kcn.or.jp> writes:

|兵藤です%もうすこしだけアプローチ..

|matz@netlab.co.jp (Yukihiro Matsumoto)さんのWed, 29 Oct 97,00773
|> -lってのもありますよ(autochop and newline addition).
|shugo@po.aianet.ne.jp (Shugo Maeda)さんのThu, 30 Oct 97,00774
|> $\ = "\n"
|
|でもどちらもprintそのものの働きが変わってしまうので
|  j=0; for i in 1..3;  j+=i; print i, " ";  end;  print ":", j, "\n"
|という使い方ができなくなります ^^;

そうですね.その辺があるので新しいメソッドを組み込みで用意す
ることにしました.で,その動作は

  * 引数を順に $< に出力する
  * OFSを参照しない
  * ORSを参照しない
  * 最後に出力した文字列の末尾が改行でなければ改行する

というものです.さて,メソッドの名前はなにが良いでしょう? 
一応 printlnという名前をつけましたが,printとの動作の差は結
構大きいので不適切な名前のような気もします.

puts? putline? printline?

                                まつもと ゆきひろ /:|)

In This Thread