## Auto-Delegation in Scala using Implicit Conversion

From: andrew cooke <andrew@...>

Date: Thu, 8 Oct 2009 12:37:29 -0400

This is a very neat trick.  I haven't tried it, but I see no reason
why it shouldn't work (despite a comment on that page it seems to be a
completely normal use of implicit type conversion).

http://jackcoughonsoftware.blogspot.com/2008/11/using-scala-implicits-to-replace.html

The idea is that Scala's type system will automatically involve the
implicit method, accessing the delegate, whenever it infers the need
for the embedded type.  So accessing delegate class as if it is the
embedded class automatically accesses the embedded class (as long as
they are not the same type, of course).

Andrew

PS There are some issues with multiple posting to the blog that I'm
afraid I cannot fix for a few days - sorry.