[#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:01934] Re: Class Variables

From: "David Douthitt" <DDouthitt@...>
Date: 2000-03-16 22:50:04 UTC
List: ruby-talk #1934
Something interesting..... this works:

  class Instance
     attr_accessor :startup

     def initialize
        @startup = TRUE
     end
  end

  test = Instance.new;
  print "test = ", test.startup, "\n";

However, if you rename "startup" to "startup?" it fails with:

  ./ruby.functions:46: parse error
        @startup? = TRUE
                   ^

The question, then, of course, is why?



In This Thread

Prev Next