Rework evaluation to use shared pointers, fix bugs
This commit is contained in:
@@ -25,10 +25,11 @@ public:
|
||||
return _type;
|
||||
}
|
||||
|
||||
EvalValue* Clone() final{
|
||||
return new ScriptFunctionEvalValue(_innerBlock, _type);
|
||||
shared_ptr<EvalValue> Clone() final{
|
||||
return make_shared<ScriptFunctionEvalValue>(_innerBlock, _type);
|
||||
}
|
||||
|
||||
|
||||
bool operator ==(EvalValue* b) final{
|
||||
if (b->GetType()->GetClass() != TypeClass::Function)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user