Game Development Reference
In-Depth Information
Figure 10-6: Two variables store two references to the same list.
When you assign the reference in spam to cheese , the cheese variable contains a
copy of the reference in spam . Now both cheese and spam refer to the same list.
Figure 10-7: Changing the list changes all variables with references to that list.
Search WWH ::




Custom Search