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.