public override void Execute(ICpu cpu) { Structure value = PopStructureAssertEncapsulated(cpu); // Convert to string instead of cast in case the identifier is stored // as an encapsulated StringValue, preventing an unboxing collision. var identifier = Convert.ToString(cpu.PopStack()); cpu.SetValueExists(identifier, value); }
public override void Execute(ICpu cpu) { object value = PopValueAssert(cpu); var identifier = (string)cpu.PopStack(); cpu.SetValueExists(identifier, value); }