Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created January 12, 2011 12:45
Show Gist options
  • Save xuwei-k/776117 to your computer and use it in GitHub Desktop.
Save xuwei-k/776117 to your computer and use it in GitHub Desktop.
限定継続を逆コンパイルした
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: test.scala
import scala.Predef$;
import scala.ScalaObject;
import scala.actors.Actor;
import scala.runtime.BoxesRunTime;
import scala.runtime.IntRef;
import scala.util.continuations.ControlContext;
import scala.util.continuations.package$;
public final class Trampoline$
implements ScalaObject
{
public void main(String args[])
{
Trampoline.TrampolineActorA..MODULE$.start();
Trampoline.TrampolineActorB..MODULE$.start();
package$.MODULE$.reset(new anonfun.main._cls1());
Thread.sleep(100L);
Trampoline.TrampolineActorA..MODULE$.stop();
Trampoline.TrampolineActorB..MODULE$.stop();
}
public ControlContext _mthswitch(Actor otherSide$1)
{
return package$.MODULE$.shiftR(new anonfun.switch._cls1(otherSide$1));
}
public ControlContext runTest()
{
IntRef n$1 = new IntRef(0);
Predef$.MODULE$.println(BoxesRunTime.boxToInteger(n$1.elem));
return _mthswitch(Trampoline.TrampolineActorA..MODULE$).flatMap(new anonfun.runTest._cls1(n$1));
}
private Trampoline$()
{
}
public static final Trampoline$ MODULE$ = this;
static
{
new Trampoline$();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment