Hi,
In message "[ruby-talk:00486] Re: coderefs"
on 99/07/13, Michael Hohn <hohn / math.utah.edu> writes:
|as opposed to using the parentheses; something like
|
| f = obj.method(:method_name)
| f(args)
|
|would be far cleaner. Does the syntax f() have a fixed, predefined meaning?
I agree f(args) is far cleaner than f.call(args), but Ruby tries to
call the method named `f' instead of invoking method object referred
by the local variable `f'. It's because the namespaces for methods
and variables are separated, like plain lisp, not like scheme.
If there's any workaround, I'd like to know.
matz.