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); }
public void ChangeReference(Value Value) { ChangeReference(Compiler.StoreValue(Value)); }
public Reference(Value ValueToReference, bool ForceNew = false) : this(Compiler.StoreValue(ValueToReference, ForceNew)) { }