public override IoObject proto(IoState state) { IoCLR pro = new IoCLR(); pro.state = state; pro.uniqueId = 0; pro.createSlots(); pro.createProtos(); pro.isActivatable = true; state.registerProtoWithFunc(pro.name, new IoStateProto(pro.name, pro, new IoStateProtoFunc(pro.proto))); //pro.protos.Add(state.protoWithInitFunc("Object")); IoCFunction[] methodTable = new IoCFunction[] { new IoCFunction("loadAssembly", new IoMethodFunc(IoCLR.slotLoadAssembly)), new IoCFunction("using", new IoMethodFunc(IoCLR.slotUsing)), new IoCFunction("getType", new IoMethodFunc(IoCLR.slotGetType)), }; pro.addTaglessMethodTable(state, methodTable); return(pro); }
public override IoObject proto(IoState state) { IoCLR pro = new IoCLR(); pro.state = state; pro.uniqueId = 0; pro.createSlots(); pro.createProtos(); pro.isActivatable = true; state.registerProtoWithFunc(pro.name, new IoStateProto(pro.name, pro, new IoStateProtoFunc(pro.proto))); //pro.protos.Add(state.protoWithInitFunc("Object")); IoCFunction[] methodTable = new IoCFunction[] { new IoCFunction("loadAssembly", new IoMethodFunc(IoCLR.slotLoadAssembly)), new IoCFunction("using", new IoMethodFunc(IoCLR.slotUsing)), new IoCFunction("getType", new IoMethodFunc(IoCLR.slotGetType)), }; pro.addTaglessMethodTable(state, methodTable); return pro; }