read eval print loop - In Scala's repl, programmatically find implicitly added functions -
I think I use scala repl more and when I do not network, I use it a lot I am adding my work to simplify the search of APIS (the port on the Python Dair) what I am trying to do now has been added by all functions fixing. I could not find any way to get it with Scala reflection, so I thought I wanted to see the compiler how: Built in:.
Within repl, is there any way to gain access to the IMAIN instance? If not, there is another (or all underlying conversion method) way to get a list of the methods contained in it?
I'm getting these details only within repl, so if it wont care about the work out of repl, that's fine.
Fwiw, I'm making a couple of improvements to complete the tab, and a suggestion feature is something The tab is to show the enhancements.
scala & gt; $ INTP res0: scala.tools.nsc.interpreter.IMain = scala.tools.nsc.interpreter.ILoop$ILoopInterpreter@27fa135a Scala & gt; : Power ** Power User Mode enabled - BEP WIRE Gave ** **: Step is set to 'Typer' ** ** scala.tools.nsc._ has been imported ** ** global._, definitions ._ Also imported ** ** Try: Help:. Vals, electricity & lt; Tab & gt; ** Scala & gt; Intp res1: scala.tools.nsc.interpreter.IMain = scala.tools.nsc.interpreter.ILoop$ILoopInterpreter@27fa135a Scale & gt; analyzer.allViewsFrom (IntTpe, typer.context, zero) res2: list [($ r.intp.global.analyzer.SearchResult, list [$ r.intp.global.analyzer.global.TypeConstraint])] = List ((SearchResult (scala.this.Int.int2double,), list (), (SearchResult (scala.this.Int.int2float,), list ()), (SearchResult (scala.this.Int.int2long,), list () ))
Comments
Post a Comment