inkwell icon indicating copy to clipboard operation
inkwell copied to clipboard

Implement Clone for CallableValue

Open amjoshuamichael opened this issue 3 years ago • 1 comments

CallableValue does not implement Clone. CallableValue is declared as Either<FunctionValue, PointerValue>FunctionValue implements Clone, PointerValue implements Clone, therefore this generic Either should implement Clone. Adding this feature should be as simple as deriving Clone on line 77 of clonable_value.rs. Is there a reason this isn't implemented?

amjoshuamichael avatar Aug 25 '22 01:08 amjoshuamichael

I don't think there's any technical reason why it hasn't been done

TheDan64 avatar Aug 26 '22 01:08 TheDan64