On Tue, 14 Mar 2006, Joel VanderWerf wrote:

> I've just gotten used to using alias *only* for metaprogramming, and not
> for ordinary API definition.
>
> Maybe it would be nice if the alias keyword were reserved for the
> delegation style definition, like your anonym method, and the
> metaprogramming interface were something like this:
>
> class Foo
>  # alias :m_copy :m # old way
>  instance_method_at[:m_copy] = instance_method(:m) # new way
>  # now you can wrap :m_copy however you want
> end
>
> This makes it more clear that you are making a copy, so it might be less
> confusing.

i like that.  what do you think about

   class Foo
     delegate :src, :dst
   end

??

-a
-- 
share your knowledge.  it's a way to achieve immortality.
- h.h. the 14th dali lama