This page is no longer maintained — Please continue to the home page at www.scala-lang.org

invokeDynamic decoding

1 reply
Jon Pretty 3
Joined: 2011-01-22,
User offline. Last seen 42 years 45 weeks ago.

Hi Martin,

Can we have invokeDynamic called with the decoded method name rather
than the encoded version? I think this equates to the following in
Typers.scala:

3485c3485
< var dynInvoke = Apply(Select(qual, nme.invokeDynamic),
List(Literal(Constant(name.toString))))
---
> var dynInvoke = Apply(Select(qual, nme.invokeDynamic), List(Literal(Constant(name.decode))))

Thanks,
Jon

odersky
Joined: 2008-07-29,
User offline. Last seen 45 weeks 6 days ago.
Re: invokeDynamic decoding


On Sat, Jan 22, 2011 at 5:21 PM, Jon Pretty <google.com@accounts.propensive.com> wrote:
Hi Martin,

Can we have invokeDynamic called with the decoded method name rather
than the encoded version?  I think this equates to the following in
Typers.scala:

3485c3485
<             var dynInvoke = Apply(Select(qual, nme.invokeDynamic),
List(Literal(Constant(name.toString))))
---
>             var dynInvoke = Apply(Select(qual, nme.invokeDynamic), List(Literal(Constant(name.decode))))

Sure. Good catch!

Thanks

-- Martin

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland