2013-01-12 18 views

Odpowiedz

40

Można użyć :reset

Welcome to Scala version 2.10.0-RC2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37). 
Type in expressions to have them evaluated. 
Type :help for more information. 

scala> val a = 1 
a: Int = 1 

scala> val b = 3 
b: Int = 3 

scala> :reset 
Resetting interpreter state. 
Forgetting this session history: 

val a = 1 
val b = 3 

Forgetting all expression results and named terms: $intp, a, b 

scala> 
+0

Dzięki! Właśnie zdałem sobie sprawę, że używam scala 2.9.2, jakikolwiek pomysł, co mogę tam użyć? ': reset' nie działa –

+0

Prawdopodobnie dodali go w wersji 2.10 ... – tenshi

Powiązane problemy