StoreValue() public static method

public static StoreValue ( Value Value, bool ForceNew = false ) : int
Value Value
ForceNew bool
return int
Example #1
0
        public Reference(ExternalMember Member)
        {
            Static = Member.Static;
            if (Member is ExternalProperty)
            {
                var prop = Member as ExternalProperty;
                if (prop.OnChange != null)
                {
                    OnChange = prop.OnChange;
                }
                if (prop.External != null)
                {
                    External = prop.External;
                }
            }
            Value toStore = Member;

            ID    = NextID;
            Index = Compiler.StoreValue(toStore);
            Compiler.RegisterReference(this, Index);
        }
Example #2
0
 public void ChangeReference(Value Value)
 {
     ChangeReference(Compiler.StoreValue(Value));
 }
Example #3
0
 public Reference(Value ValueToReference, bool ForceNew = false)
     : this(Compiler.StoreValue(ValueToReference, ForceNew))
 {
 }