[#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:02121] Re: ARGF vs. $<

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-24 05:42:53 UTC
List: ruby-talk #2121
Hi,

In message "[ruby-talk:02118] ARGF vs. $<"
    on 00/03/23, Dave Thomas <Dave@thomases.com> writes:

|Apart from the naming convention, is there a reason that ARGF is
|documented as a global constant and $< as a global variable? They both 
|reference the same object, and effectively have the same semantics. Am 
|I missing something subtle here?

They are same in semantics, but syntactically, $< is a read-only
special variable, and ARGF is a constant.  In reference manual, I
cannot ignore syntactical difference.

							matz.

In This Thread

Prev Next