Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
scala .classes
class Foo(val name:String){
val buf = new Array[Byte](4096)
def printName = println(_:String)
def printOther(op:String => Unit) = op("Somthing")
shairon@infusion tmp: scalac Foo.scala
shairon@infusion tmp: ls -lh Foo*
-rw-r--r-- 1 shairon wheel 991B Mar 19 19:33 Foo$$anonfun$printName$1.class
-rw-r--r-- 1 shairon wheel 403B Mar 19 18:15 Foo$.class
-rw-r--r-- 1 shairon wheel 1.5K Mar 19 19:33 Foo.class
-rw-r--r--@ 1 shairon wheel 153B Mar 19 19:33 Foo.scala
shairon@infusion tmp: javap Foo
Compiled from "Foo.scala"
public class Foo extends java.lang.Object implements scala.ScalaObject{
public java.lang.String name();
public byte[] buf();
public scala.Function1 printName();
public void printOther(scala.Function1);
public Foo(java.lang.String);
shairon@infusion tmp: javap Foo$
Compiled from "Foo.scala"
public final class Foo$ extends java.lang.Object implements scala.ScalaObject{
public static final Foo$ MODULE$;
public static {};
public byte[] buf();
shairon@infusion tmp: javap Foo\$\$anonfun\$printName\$1
Compiled from "Foo.scala"
public final class Foo$$anonfun$printName$1 extends scala.runtime.AbstractFunction1 implements scala.Serializable{
public static final long serialVersionUID;
public static {};
public final void apply(java.lang.String);
public final java.lang.Object apply(java.lang.Object);
public Foo$$anonfun$printName$1(Foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.