Projects > cpp > Issues > Refactor #1406

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Should not return a object reference from engine

Refactor #1406 [Rejected]
zhangxm 2012-07-26 09:22 . Updated about 4 years ago

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.

zhangxm 2012-07-27 08:52
  • Assignee set to zhangxm
zhangxm 2012-07-27 09:50
  • Assignee deleted (zhangxm)
  • Target version changed from cocos2d-2.0-x-2.0.2 to 34

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.

walzer@cocos2d-x.org 2012-10-09 03:45
  • Status changed from New to Rejected
  • Target version deleted (34)

No worth to do so.

Atom PDF

Status:Rejected
Start date:2012-07-26
Priority:Normal
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.