[#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:02063] Re: class File acting funny!

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-21 21:02:48 UTC
List: ruby-talk #2063
Hi,

In message "[ruby-talk:02052] Re: class File acting funny!"
    on 00/03/21, "David Douthitt" <DDouthitt@cuna.com> writes:

|| |   * $0 was not being recognized in parameter default value expressions
|| 
|| It works on my machine:
|
|Is there a limit to the complexity of expressions used as default
|values?

No, I don't think so.  Can you show me your script?

|| Two work arounds:
|| 
||   (a) Wait until IO calls `initialize', somewhere in this month I
||       think.
|| 
||   (b) Use delegator, e.g.
|| 
||          require 'delegate
|| 
||          class Lock<DelegateClass(IO)
||             attr_accessor :locked, :lockdir, :lockfile
||             ...
||          end
|
|These sound like 1.5-isms.  Am I the only one using 1.4.3?

The latter should work fine on 1.4.

							matz.

In This Thread

Prev Next