Should not return a object reference from engine
CC_PROPERTY_PASS_BY_REF, CC_SYNTHESIZE_PASS_BY_REF return a object reference.
It is dangerous, because the value may be modified outside.
Should return an object.
Updated by Minggo Zhang 10 months ago
- Assignee deleted (
- Target version changed from cocos2d-2.0-x-2.0.2 to Unplanned
I am not sure if it should return a non reference object.
Because it may affect the engine performance.
So i move this issue to unplanned.