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
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
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
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