874
edits
(→COWing Objects: rewording) |
(→COWing Objects: fixed outdated info) |
||
| Line 59: | Line 59: | ||
baz: "I am protected information" | baz: "I am protected information" | ||
} | } | ||
</pre> | </pre> | ||
In the above example, <tt>MyObj.foo()</tt> can be accessed but not assigned to | In the above example, <tt>MyObj.foo()</tt> can be accessed but not assigned to, <tt>foo()</tt> itself is callable from content, and <tt>MyObj.bar</tt> is both readable and writable, while <tt>MyObj.baz</tt> can't be accessed at all. | ||
All properties that are exposed to content are enumerable by content as well. | All properties that are exposed to content are enumerable by content as well. | ||
edits