Hi all,
In RFC 7950 section 6.4.1:
o Names without a namespace prefix belong to the same namespace as
the identifier of the current node. Inside a grouping, that
namespace is affected by where the grouping is used (see
Section 7.13<https://www.rfc-editor.org/rfc/rfc7950#section-7.13>).
Inside a typedef, that namespace is affected by
where the typedef is referenced. If a typedef is defined and
referenced within a grouping, the namespace is affected by where
the grouping is used (see Section
7.13<https://www.rfc-editor.org/rfc/rfc7950#section-7.13>).
and section 5.4:
Grouping, type, and identity names are resolved in the context in
which they are defined, rather than the context in which they are
used. Users of groupings, typedefs, and identities are not required
to import modules or include submodules to satisfy all references
made by the original definition. This behaves like static scoping in
a conventional programming language.
I think these two section have some conflicts. If groupings and typedefs are
resolved in the context where they are defined, why names without prefix
belongs to the namespace where they are used?
The authors who defined the groupings and typedefs don't know where these
definitions are used, they only know the place where these definitions are
defined.
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod