mirror of
https://github.com/flynx/Slang.git
synced 2025-10-29 02:30:08 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
627237af1b
commit
2b734818f8
@ -31,15 +31,15 @@
|
|||||||
b.z // -> 3
|
b.z // -> 3
|
||||||
|
|
||||||
// What we see is that if the attribute is not found in the current
|
// What we see is that if the attribute is not found in the current
|
||||||
// object it resolves to the next object, and so on, this next object is
|
// object the next object is checked, and so on, this next object is
|
||||||
// called "prototype".
|
// called "prototype".
|
||||||
// These prototype chains can be of any length.
|
// These prototype chains can be of any length.
|
||||||
// Cycles in prototype chains are not allowed, see note further down for
|
// Cycles in prototype chains are not allowed, see note further down for
|
||||||
// an example.
|
// an example.
|
||||||
//
|
//
|
||||||
// Note that this works for reading attributes, but when writing or
|
// Note that this works for reading (and mutating) attributes, but when
|
||||||
// deleting we are affecting ONLY the local object and attributes
|
// writing or deleting we are affecting ONLY the local object and
|
||||||
// explicitly defined in it, or its' "own" attributes.
|
// attributes explicitly defined in it, or its' "own" attributes.
|
||||||
|
|
||||||
b.x = 321
|
b.x = 321
|
||||||
b.x // -> 321
|
b.x // -> 321
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user