Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to exit power mode in the Scala interpreter?

I know power mode together with a slew of other options can be enabled in the interpreter with :power. Is there a way to leave power mode and return to a regular user?

Cheers,

Henry Henrinson

like image 368
Henry Henrinson Avatar asked Jul 28 '11 09:07

Henry Henrinson


1 Answers

The short answer is no. The reason is that power mode imports various classes and adds to the classpath, and the JVM is not designed to unload classes and classpaths. So although you could remove some aspects of power mode, it would be tricky to leave the JVM in the same state afterwards as if you hadn't used it, so you'd really only end up half removing it.

like image 53
Rex Kerr Avatar answered Oct 14 '22 23:10

Rex Kerr