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

From: schneik@...
Date: 2000-03-24 18:03:34 UTC
List: ruby-talk #2140

Matz wrote:
>     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.

I don't know if Dave also wants to include the following in his
documentation, but in English.rb there is also:

    alias $DEFAULT_INPUT           $<

Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)


In This Thread

Prev Next