Example #1
0
        internal bool SetStaticValue(out object oldValue, object name, object newValue, int staticOffset)
        {
            object    cell  = this.staticBindings[staticOffset];
            ValueCell vcell = cell as ValueCell;

            if (vcell != null)
            {
                return(vcell.Assign(out oldValue, newValue));
            }
            else
            {
                throw new NotImplementedException();
            }
            // return this.staticBindings [staticOffset].Assign (out oldValue, newValue);
        }
Example #2
0
        public bool StaticValue(out object value, object name, int staticOffset)
        {
            //return this.staticBindings [staticOffset].GetValue (out value);
            object    cell  = this.staticBindings[staticOffset];
            ValueCell vcell = cell as ValueCell;

            if (vcell == null)
            {
                value = cell;
                return(false);
            }
            else
            {
                return(vcell.GetValue(out value));
            }
        }
Example #3
0
        ValueCell cell; // the lambda expression that binds it

        public StaticBinding(object name, ValueCell cell)
        {
            this.cell = cell;
            this.name = name;
        }
Example #4
0
 public StaticBinding(object name, ValueCell cell)
 {
     this.cell = cell;
     this.name = name;
 }
 protected PrimitiveVectorRefT(Primitive2 rator, TopLevelVariable rand0, SCode rand1)
     : base(rator, rand0, rand1)
 {
     this.rand0Cell = rand0.valueCell;
 }
 protected PrimitiveVectorRefT(Primitive2 rator, TopLevelVariable rand0, SCode rand1)
     : base(rator, rand0, rand1)
 {
     this.rand0Cell = rand0.valueCell;
 }