On Mon, Nov 9, 2015 at 10:38 AM, Martin Bjorklund <[email protected]> wrote:
> Hi,
>
> I implemented most of the 1.1 features that affect the compiler in
> pyang on the flight back from Yokohama. (if you have 1.1 modules, I'd
> appreciate if you could try it out).
>
> In doing this, I realized that I forgot one part of Y10 - "allow
> restrictions on enumerations". If we allow:
>
> typedef foo2 {
> type enumeration {
> enum a;
> enum b;
> }
> }
> typedef bar2 {
> type foo2 {
> enum a;
> }
> }
>
> we should also allow:
>
> typedef foo2 {
> type bits {
> bit a;
> bit b;
> }
> }
> typedef bar2 {
> type foo2 {
> bit a;
> }
> }
>
> It is briefly mentioned in the description of Y10.
>
>
> Comments?
>
>
Yet more complexity without any real use-cases?
How does auto-numbering work in both cases?
typedef foo2 {
type enumeration {
enum a;
enum b;
}
}
typedef foo3 {
type foo2 {
enum b;
}
}
typedef bar1 {
type enumeration {
enum b;
}
}
What is the auto-numbering of enum 'b' in type foo3?
What value does type foo3 have over bar1?
> /martin
>
Andy
>
> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod
>
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod