[#138] Thread Problems — Reimer Behrends <behrends@...>

I have been looking at the thread implementation of Ruby for the past

21 messages 1998/12/23
[#164] Re: Thread Problems — matz@... (Yukihiro Matsumoto) 1999/01/05

Hi.

[#167] Makefiles and -lcurses — Klaus.Schilling@... 1999/01/05

Julian Fondren writes:

[#168] Re: Makefiles and -lcurses — Julian Fondren <julian@...> 1999/01/05

OpenBSD has ncurses and it's own ocurses, and I prefer the latter.

[ruby-talk:00136] Re: very very NEWbie

From: matz@... (Yukihiro Matsumoto)
Date: 1998-12-21 03:07:57 UTC
List: ruby-talk #136
Hi.

In message "[ruby-talk:00133] Re: very very NEWbie"
    on 98/12/20, Reimer Behrends <behrends@cse.msu.edu> writes:

|> class ABC
|>     def initialize( _v )
|>         @v = _v
|>     end
|>     attr_accesser :v
|> end
|
|Hmm. I've used attr_accessor (with an "o" instead of an "e") so far,
|especially as attr_accesser gives me a runtime error. Also, I prefer to use
|attr instead of attr_reader. Anything wrong with that?

Sorry, accessor is a typo.

BTW, about the defference between attr and attr_reader, you can
specify multiple names by attr_reader.  Some (including me) prefer the
style like:

  attr_reader :foo, :bar, :baz

more than

  attr :foo
  attr :bar
  attr :baz

But YMMV.
                                                matz.

In This Thread

Prev Next