For now, Object protocol methods are (mostly) thin wrapper of matching vm functions. Because we don't need to have duplicated functions for same features, they need to be moved from vm to object protocol functions.
vm path: vm/src/vm.rs
- object protocol path:
vm/src/protocol/object.rs
The matching vm functions are easy to find because object methods are calling it.
Becasue relocating each function will cause many code editing, every new PR for each function is recommended for easier review.
Reference:
For now, Object protocol methods are (mostly) thin wrapper of matching vm functions. Because we don't need to have duplicated functions for same features, they need to be moved from vm to object protocol functions.
vmpath:vm/src/vm.rsvm/src/protocol/object.rsThe matching vm functions are easy to find because object methods are calling it.
vm.get_attributetoobj.get_attr#3331vm.set_attrtoobj.set_attr#3338vm.del_attrtoobj.del_attr#3341vm.rich_comparetoobj.rich_compare#3347vm.to_reprtoobject.repr#3364vm.to_strtoobj.str#3349Becasue relocating each function will cause many code editing, every new PR for each function is recommended for easier review.
Reference: