Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dotnet] Use NQPCode instead of the hack LLCode.
  • Loading branch information
jnthn committed Oct 21, 2010
1 parent 3c156f0 commit bd57e32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dotnet/runtime/Init.cs
Expand Up @@ -43,7 +43,7 @@ public static ThreadContext Initialize(string SettingName)

// Cache native capture and LLCode type object.
CaptureHelper.CaptureTypeObject = SettingContext.LexPad.GetByName("capture");
CodeObjectUtility.LLCodeTypeObject = (RakudoCodeRef.Instance)SettingContext.LexPad.GetByName("LLCode");
CodeObjectUtility.LLCodeTypeObject = (RakudoCodeRef.Instance)SettingContext.LexPad.GetByName("NQPCode");

// Create an execution domain and a thread context for it.
var ExecDom = new ExecutionDomain();
Expand Down Expand Up @@ -90,7 +90,7 @@ private static Context BootstrapSetting(RakudoObject KnowHOW)
{
var SettingContext = new Context();
SettingContext.LexPad = new Lexpad(new string[]
{ "KnowHOW", "capture", "NQPInt", "NQPNum", "NQPStr", "NQPList", "LLCode", "list" });
{ "KnowHOW", "capture", "NQPInt", "NQPNum", "NQPStr", "NQPList", "NQPCode", "list" });
SettingContext.LexPad.Storage = new RakudoObject[]
{
KnowHOW,
Expand Down Expand Up @@ -134,7 +134,7 @@ public static Context LoadSetting(string Name, RakudoObject KnowHOW)
// Fudge a few more things in.
// XXX Should be able to toss all of thse but KnowHOW.
SettingContext.LexPad.Extend(new string[]
{ "KnowHOW", "print", "say", "capture", "LLCode" });
{ "KnowHOW", "print", "say", "capture" });
SettingContext.LexPad.SetByName("KnowHOW", KnowHOW);
SettingContext.LexPad.SetByName("print",
CodeObjectUtility.WrapNativeMethod((TC, self, C) =>
Expand Down Expand Up @@ -164,7 +164,6 @@ public static Context LoadSetting(string Name, RakudoObject KnowHOW)
return CaptureHelper.Nil();
}));
SettingContext.LexPad.SetByName("capture", REPRRegistry.get_REPR_by_name("P6capture").type_object_for(null, null));
SettingContext.LexPad.SetByName("LLCode", REPRRegistry.get_REPR_by_name("RakudoCodeRef").type_object_for(null, KnowHOW.STable.REPR.instance_of(null, KnowHOW)));

return SettingContext;
}
Expand Down

0 comments on commit bd57e32

Please sign in to comment.