internal bool ScopeTest(Scope.ScopeMode f) { return (vMode & f) != 0; }
internal void ScopeSet(Scope.ScopeMode f) { vMode = f; }
internal void PopScope(Scope.ScopeMode vm) { scope = (Scope)scopes.Pop(); vMode = vm; }
internal Scope.ScopeMode PushScope() { Scope.ScopeMode vm = vMode; Scope sc = new Scope(ruby); scopes.Push(scope); scope = sc; vMode = Scope.ScopeMode.Public; return vm; }
internal RThread(NetRuby rb, RThread th) : base(rb, rb.cThread) { result = null; ////safeLevel = th.safeLevel; gid = th.gid; abortOnException = rb.cThread.abortOnException; threadId = AppDomain.GetCurrentThreadId(); thread = Thread.CurrentThread; vMode = Scope.ScopeMode.Private; ////frame = (Frame)rb.topFrame.Dup(); ////frame.self = rb.topSelf; ////frame.cBase = rb.topCRef; scopes = new Stack(); scope = new Scope(rb); dyna_vars = null; ////iter = new Stack(); ////iter.Push(ITER.NOT); ////protTag = new Stack(); //// protTag.Push(null); ////block = null; lvtbl = null; rClass = rb.cObject; wrapper = null; ////cRef = rb.topCRef; file = "ruby"; line = 0; inEval = 0; tracing = false; errInfo = null; lastCallStat = CALLSTAT.PUBLIC; locals = null; }
internal RThread(NetRuby rb) : base(rb, rb.cThread) { result = null; ////safeLevel = 0; threadId = AppDomain.GetCurrentThreadId(); thread = Thread.CurrentThread; ////vMode = Scope.ScopeMode.Private; ////frame = new Frame(); ////rb.topFrame = frame; scopes = new Stack(); scope = new Scope(rb); dyna_vars = null; ////iter = new Stack(); ////iter.Push(ITER.NOT); ////protTag = new Stack(); //// protTag.Push(null); ////block = null; lvtbl = null; rClass = null; wrapper = null; ////cRef = null; file = "ruby"; line = 0; inEval = 0; tracing = false; errInfo = null; lastCallStat = CALLSTAT.PUBLIC; locals = null; gid = 0; }