[#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:02119] TRUE vs. true

From: Dave Thomas <Dave@...>
Date: 2000-03-24 04:27:26 UTC
List: ruby-talk #2119
As far as I can tell, 'true' is a symbol built in to the lexer which
generates a NODE_TRUE, which internally evaluates to Qtrue, which is
the singleton instance of TrueClass.

On the other hand, 'TRUE' is a global constant that contains a
reference to the same object of class TrueClass.

So... is there any difference at all between them programmatically, or
could I document TRUE as a synonym for true?

Dave

In This Thread

Prev Next