[#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:01994] Re: Time::at

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-18 01:13:29 UTC
List: ruby-talk #1994
In message "[ruby-talk:01986] Re: Time::at"
    on 00/03/17, Dave Thomas <Dave@thomases.com> writes:

|> Esoteric question: what's the difference between Time::at and Time.at ?
|
|three dots

(Grin)

`.' and `::' are almost same; `::' is often used for class methods.
The only technical difference between `.' and `::' is that if the
idendifer after `::' is beginning with capital letter, it considered
as constant unless argument list follows. e.g.

   Foo.Bar()           method
   Foo.Bar             method
   Foo::Bar()          method
   Foo::Bar            constant access

							matz.

In This Thread

Prev Next