mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Added para about Instance.Parent
This commit is contained in:
parent
054a8b06dd
commit
e93a80eb84
1 changed files with 8 additions and 0 deletions
|
@ -108,6 +108,14 @@ A `require`d module's properties should be read-only by default.
|
||||||
|
|
||||||
*This is a possibly breaking change.*
|
*This is a possibly breaking change.*
|
||||||
|
|
||||||
|
### Separate getter and setter for Instance.Parent
|
||||||
|
|
||||||
|
If we had separate getters and setters for Instance.Parent, we could
|
||||||
|
allow setting with any `Instance`, but getting at the type given by
|
||||||
|
the initial DM. This is unsound, but would support reparenting, and
|
||||||
|
any solution for reparenting is either going to require whole-program
|
||||||
|
analysis or have unsoundness.
|
||||||
|
|
||||||
### Why separate the getter from the setter?
|
### Why separate the getter from the setter?
|
||||||
|
|
||||||
Separate getters and setters were introduced to TypeScript in response
|
Separate getters and setters were introduced to TypeScript in response
|
||||||
|
|
Loading…
Add table
Reference in a new issue