[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01707] Re: Conventions for our Ruby book

From: Clemens Hintze <clemens.hintze@...>
Date: 2000-03-03 10:29:29 UTC
List: ruby-talk #1707
Yukihiro Matsumoto writes:
> Hi,
> 
> In message "[ruby-talk:01701] Re: Conventions for our Ruby book"
>     on 00/03/03, Clemens Hintze <c.hintze@gmx.net> writes:

...

> Using `::' for class methods are OK, I even recommend it.  But
> aren't we discussing the notation for instance methods?  I vote for
> `#' for instance methods.

I think, we would not have to differentiate class from instance
methods, would we? If we would, we could write in examples:

    d = Dir::new    # for class methods, and
    d.chdir(...)    # for instance methods.

But I think, we need a way to express where I can find a method, if I
search it. Here I think, it is okay to use '::' only (if we need vaid
syntax), or '#' otherwise. In such a description Dir#chdir or
Dir::chdir would mean to me: method 'chdir' defined in
namespace/module/class 'Dir'. Here it would be regardless, if the
method is a class or instance method.

Just an idea :-)

> 							matz.

\cle

In This Thread

Prev Next