Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2.3.4 Multiname (Multiple Namespace Name)
- This is a multiname with a name and a namespace set. The namespace set is used to represent a collection of
- namespaces. Multiname entries will have a name index followed by a namespace set index. The name index is
- an index into the string constant pool, and the namespace set index is an index into the namespace set constant
- pool.
- Multinames are typically used for unqualified names. In these cases all open namespaces are used for the
- multiname.
- use namespace t;
- trace(f);
- This code will produce a multiname entry for f. It will have a name of "f" and a namespace set for all the open
- namespaces (the public namespace, the namespace t, and any private or internal namespaces open in that
- context). At runtime f could be resolved in any of the namespaces specified by the multiname.
Advertisement
Add Comment
Please, Sign In to add comment