Set() public method

public Set ( Wren.Core.Objects.Obj key, Wren.Core.Objects.Obj c ) : void
key Wren.Core.Objects.Obj
c Wren.Core.Objects.Obj
return void
示例#1
0
        public WrenVM()
        {
            MethodNames = new List<string>();
            ObjString name = new ObjString("core");

            // Implicitly create a "core" module for the built in libraries.
            ObjModule coreModule = new ObjModule(name);

            _modules = new ObjMap();
            _modules.Set(Obj.Null, coreModule);

            CoreLibrary core = new CoreLibrary(this);
            core.InitializeCore();

            // Load in System functions
            Meta.LoadLibrary(this);
        }
示例#2
0
        public WrenVM()
        {
            MethodNames = new List<string>();
            ObjString name = new ObjString("core");

            // Implicitly create a "core" module for the built in libraries.
            ObjModule coreModule = new ObjModule(name);

            modules = new ObjMap();
            modules.Set(new Value (ValueType.Null), new Value(coreModule));

            CoreLibrary core = new CoreLibrary(this);
            core.InitializeCore();

            // Load in System functions
            Library.IO.LoadIOLibrary(this);
        }