[Bug 27354] Internal slots

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27354

--- Comment #5 from Anne <annevk@annevk.nl> ---
(In reply to Travis Leithead [MSFT] from comment #3)
> Is the distinction really that necessary?

Note that while having internal slots would make many specifications far less
ambiguous about what is actually going on, the real driver here is bug 27355.
When you instantiate an object, you need to figure out if it has associated
objects that need to be instantiated as well (and make sure they all have the
correct Realm). Having a concept of internal slots helps formalizing finding
those associated objects.

interface Document {
  readonly attribute DOMImplementation implementation;
}

Helps establishing that when a Document is created, a DOMImplementation object
is created as well and stored in Document's [[implementation]].

(A nice follow up might be to have default IDL getter/setter implementations
for these scenarios. E.g. for the above the getter will simply return
this@[[implementation]]. There's no need to spell that out in the specification
anymore.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 18 November 2014 10:11:02 UTC