jan_flanders

Untitled

Jan 7th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. 2.3.4 Multiname (Multiple Namespace Name)
  2. This is a multiname with a name and a namespace set. The namespace set is used to represent a collection of
  3. namespaces. Multiname entries will have a name index followed by a namespace set index. The name index is
  4. an index into the string constant pool, and the namespace set index is an index into the namespace set constant
  5. pool.
  6. Multinames are typically used for unqualified names. In these cases all open namespaces are used for the
  7. multiname.
  8. use namespace t;
  9. trace(f);
  10. This code will produce a multiname entry for f. It will have a name of "f" and a namespace set for all the open
  11. namespaces (the public namespace, the namespace t, and any private or internal namespaces open in that
  12. 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