[#9581] SIGFPE isn't raised on FreeBSD 4.0 — gotoken@... (GOTO Kentaro)

ごとけんです

18 messages 2000/04/18
[#9582] Re: SIGFPE isn't raised on FreeBSD 4.0 — ARIMA Yasuhiro <fit0298@...> 2000/04/18

有馬です。

[#9583] Re: SIGFPE isn't raised on FreeBSD 4.0 — EGUCHI Osamu <eguchi@...> 2000/04/18

えぐち@エスアンドイー です。

[ruby-dev:9553] File#new doesn't call initialize?

From: Yasushi Shoji <yashi@...>
Date: 2000-04-05 06:06:49 UTC
List: ruby-dev #9553
やすしです。

以下の codeで printされる物が versionによって違うみたいです。

1.5 => 3
1.4.3 => nil
-r ruby_1_4 Apr 5 1:53am EDT => nil

1.5の振舞いを期待してたのですが‥。
--
            yashi


class IndentFile < File
  def initialize(a,b)
    @currIndent = 3
  end
  attr_accessor :currIndent
end

out = IndentFile.new("out", "w+")
p out.currIndent

In This Thread

Prev Next