1 Aug 2005 06:29
Re: read-eval-print loop?
Raoul Duke <raould <at> gmail.com>
2005-08-01 04:29:55 GMT
2005-08-01 04:29:55 GMT
On 7/22/05, Burak Emir <Burak.Emir <at> epfl.ch> wrote: > It's not very actively maintained, has some bugs, but definitely works. Hi Burak, Thanks for the info. I gave it a try while attemping to figure out how currying works in Scala and the first thing I typed caused it to die(Continue reading)Please see the excerpt below. I haven't found it in any of the docs: what is the syntax for currying? I attempted to do something long the lines of: def foo(x:int, y:int):int = {x+y;} foo(7); // hoping to get a method object back, but the compiler tells me wrong number of arguments. many thanks for your time! version: 1.4.0.0 type :? to get a list of all interpreter commands > def fn(x:int, y:int) :int = {x+y;} Exception in thread "main" java.lang.AbstractMethodError: updateFlagsAndPos at scala.tools.scalac.typechecker.Analyzer.updateFlagsAndPos(Analyzer.scala(Compiled Code)) at scala.tools.scalac.typechecker.Analyzer$class.updateFlagsAndPos(Analyzer.scala(Compiled Code)) at scala.tools.scalac.typechecker.Analyzer$class.typeSymbolOrNone(Analyzer.scala(Inlined Compiled Code)) at scala.tools.scalac.typechecker.Analyzer$class.classSymbol(Analyzer.scala(Inlined Compiled Code)) at scala.tools.scalac.typechecker.Analyzer$class.enterSym(Analyzer.scala(Compiled
Please see the excerpt below.
I haven't found it in any of the docs: what is the syntax for
currying? I attempted to do something long the lines of:
def foo(x:int, y:int):int = {x+y;}
foo(7); // hoping to get a method object back, but the compiler tells
me wrong number of arguments.
many thanks for your time!
version: 1.4.0.0
type :? to get a list of all interpreter commands
> def fn(x:int, y:int) :int = {x+y;}
Exception in thread "main" java.lang.AbstractMethodError: updateFlagsAndPos
at scala.tools.scalac.typechecker.Analyzer.updateFlagsAndPos(Analyzer.scala(Compiled
Code))
at scala.tools.scalac.typechecker.Analyzer$class.updateFlagsAndPos(Analyzer.scala(Compiled
Code))
at scala.tools.scalac.typechecker.Analyzer$class.typeSymbolOrNone(Analyzer.scala(Inlined
Compiled Code))
at scala.tools.scalac.typechecker.Analyzer$class.classSymbol(Analyzer.scala(Inlined
Compiled Code))
at scala.tools.scalac.typechecker.Analyzer$class.enterSym(Analyzer.scala(Compiled
Thanks for your help,
Matthew
RSS Feed