Do I need to set all attributes to NULL for as3 object destruction?

Source: Internet
Author: User
Do I need to set all attributes to NULL for as3 object destruction? Chuan <babyfaction@qq.com> 14:07:45
No
Chuan <babyfaction@qq.com> 14:08:05
Only external references are required.
Chuan <babyfaction@qq.com> 14:08:41
However, to prevent other Members from accidentally making a property externally referenced, it is best to return null.
Coffee in the afternoon (8548439) 14:09:05

Chuan <babyfaction@qq.com> 14:11:10
For example, some colleagues add a public method to your class to expose your private attributes and reference them... If you do not set null, the entire class cannot be destroyed ..
Coffee in the afternoon (8548439) 14:11:39
Well,
Coffee in the afternoon (8548439) 14:11:50
It seems that null is the safest choice.
Chuan <babyfaction@qq.com> 14:12:02
Hmm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.