Skip to content

Commit

Permalink
[java] finish the last todo items in SharedTable (calling Runtime.Ops)
Browse files Browse the repository at this point in the history
  • Loading branch information
mberends committed Sep 18, 2010
1 parent 9765a28 commit 3f1d29b
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions java/runtime/Rakudo/Metamodel/SharedTable.java
Expand Up @@ -4,8 +4,9 @@
import Rakudo.Metamodel.RakudoObject;
import Rakudo.Metamodel.Representation;
import Rakudo.Metamodel.Representations.RakudoCodeRef;
import Rakudo.Runtime.ThreadContext;
import Rakudo.Runtime.CaptureHelper;
import Rakudo.Runtime.Ops;
import Rakudo.Runtime.ThreadContext;
import Rakudo.Serialization.SerializationContext;

/// <summary>
Expand Down Expand Up @@ -36,16 +37,8 @@ public RakudoObject FindMethod(ThreadContext tc, RakudoObject obj, String name,
RakudoObject meth = HOW.getSTable().FindMethod.FindMethod(tc, HOW, "find_method", Hints.NO_HINT);

// Call it.
// TODO RakudoObject cap = CaptureHelper.FormWith(new RakudoObject[] { HOW, Ops.box_str(tc, name, tc.DefaultStrBoxType) });
// TODO return meth.getSTable().Invoke.Invoke(tc, meth, cap);
return null; // TODO remove
// // Find the find_method method. // the C# version
// var HOW = Obj.STable.HOW;
// var Meth = HOW.STable.FindMethod(TC, HOW, "find_method", Hints.NO_HINT);
//
// // Call it.
// var Cap = CaptureHelper.FormWith(new RakudoObject[] { HOW, Ops.box_str(TC, Name, TC.DefaultStrBoxType) });
// return Meth.STable.Invoke(TC, Meth, Cap);
RakudoObject cap = CaptureHelper.FormWith(new RakudoObject[] { HOW, Ops.box_str(tc, name, tc.DefaultStrBoxType) });
return meth.getSTable().Invoke.Invoke(tc, meth, cap);
}
}
};
Expand Down

0 comments on commit 3f1d29b

Please sign in to comment.