[Lift] Re: [scala] documentation for structural/partial type bounds

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 3:54 PM, Szymon Jachim wrote: > What surprised me recently is that you can use these in asInstanceOf: > > x.asInstanceOf[ {def aMethod(i: Int): Unit} ].aMethod(888) Holy frickin' cow... that's cool > > > Interesting way to do reflective calls... > > > On Thu, Mar 5, 200

[Lift] Re: [scala] documentation for structural/partial type bounds

2009-03-04 Thread Meredith Gregory
Szymon, That's pretty nifty. Best wishes, --greg On Wed, Mar 4, 2009 at 3:54 PM, Szymon Jachim wrote: > What surprised me recently is that you can use these in asInstanceOf: > > x.asInstanceOf[ {def aMethod(i: Int): Unit} ].aMethod(888) > > Interesting way to do reflective calls... > > > On T

[Lift] Re: [scala] documentation for structural/partial type bounds

2009-03-04 Thread Meredith Gregory
David, Thanks! Best wishes, --greg On Wed, Mar 4, 2009 at 3:46 PM, David Pollak wrote: > scala> def doClose(in: {def close(i: Int): Unit}) {in.close(42)} > doClose: (AnyRef{def close(Int): Unit})Unit > > > > > On Wed, Mar 4, 2009 at 3:26 PM, Meredith Gregory > wrote: > >> Dam and Sir Scalahad

[Lift] Re: [scala] documentation for structural/partial type bounds

2009-03-04 Thread David Pollak
scala> def doClose(in: {def close(i: Int): Unit}) {in.close(42)} doClose: (AnyRef{def close(Int): Unit})Unit On Wed, Mar 4, 2009 at 3:26 PM, Meredith Gregory wrote: > Dam and Sir Scalahads, > > Where is the documentation for the structural/partial type syntax? i want > to express a bound on a t