Пример #1
0
 internal bool ScopeTest(Scope.ScopeMode f)
 {
     return (vMode & f) != 0;
 }
Пример #2
0
 internal void ScopeSet(Scope.ScopeMode f)
 {
     vMode = f;
 }
Пример #3
0
 internal void PopScope(Scope.ScopeMode vm)
 {
     scope = (Scope)scopes.Pop();
     vMode = vm;
 }
Пример #4
0
 internal Scope.ScopeMode PushScope()
 {
     Scope.ScopeMode vm = vMode;
     Scope sc = new Scope(ruby);
     scopes.Push(scope);
     scope = sc;
     vMode = Scope.ScopeMode.Public;
     return vm;
 }
Пример #5
0
        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;
        }
Пример #6
0
        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;
        }