Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 17:46, Per Hedeland wrote: > > On 2016-04-29 17:07, Ladislav Lhotka wrote: >> >>> On 29 Apr 2016, at 16:32, Per Hedeland wrote: >>> >>> On 2016-04-29 16:15, Ladislav Lhotka wrote: > On 29 Apr 2016, at 15:51, Per Hedeland wrote: > > On 2016-04-29 15:28,

Re: [netmod] restricted enumeration

2016-04-29 Thread Per Hedeland
On 2016-04-29 17:07, Ladislav Lhotka wrote: > >> On 29 Apr 2016, at 16:32, Per Hedeland wrote: >> >> On 2016-04-29 16:15, Ladislav Lhotka wrote: >>> On 29 Apr 2016, at 15:51, Per Hedeland wrote: On 2016-04-29 15:28, Ladislav Lhotka wrote: > >> On 29 Apr 2016, at 15:07, Jue

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 16:32, Per Hedeland wrote: > > On 2016-04-29 16:15, Ladislav Lhotka wrote: >> >>> On 29 Apr 2016, at 15:51, Per Hedeland wrote: >>> >>> On 2016-04-29 15:28, Ladislav Lhotka wrote: > On 29 Apr 2016, at 15:07, Juergen Schoenwaelder > wrote: > > On F

Re: [netmod] restricted enumeration

2016-04-29 Thread Per Hedeland
On 2016-04-29 16:15, Ladislav Lhotka wrote: > >> On 29 Apr 2016, at 15:51, Per Hedeland wrote: >> >> On 2016-04-29 15:28, Ladislav Lhotka wrote: >>> On 29 Apr 2016, at 15:07, Juergen Schoenwaelder wrote: On Fri, Apr 29, 2016 at 02:57:36PM +0200, Ladislav Lhotka wrote: >

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 15:51, Per Hedeland wrote: > > On 2016-04-29 15:28, Ladislav Lhotka wrote: >> >>> On 29 Apr 2016, at 15:07, Juergen Schoenwaelder >>> wrote: >>> >>> On Fri, Apr 29, 2016 at 02:57:36PM +0200, Ladislav Lhotka wrote: Or are you saying that "type foo {}" is not th

Re: [netmod] restricted enumeration

2016-04-29 Thread Per Hedeland
On 2016-04-29 15:28, Ladislav Lhotka wrote: > >> On 29 Apr 2016, at 15:07, Juergen Schoenwaelder >> wrote: >> >> On Fri, Apr 29, 2016 at 02:57:36PM +0200, Ladislav Lhotka wrote: >>> >>> Or are you saying that "type foo {}" is not the same as "type foo;"? >>> >> >> Yes, "type foo {}" has a restri

Re: [netmod] restricted enumeration

2016-04-29 Thread Juergen Schoenwaelder
On Fri, Apr 29, 2016 at 03:28:34PM +0200, Ladislav Lhotka wrote: > > > On 29 Apr 2016, at 15:07, Juergen Schoenwaelder > > wrote: > > > > On Fri, Apr 29, 2016 at 02:57:36PM +0200, Ladislav Lhotka wrote: > >> > >> Or are you saying that "type foo {}" is not the same as "type foo;"? > >> > > >

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 15:07, Juergen Schoenwaelder > wrote: > > On Fri, Apr 29, 2016 at 02:57:36PM +0200, Ladislav Lhotka wrote: >> >> Or are you saying that "type foo {}" is not the same as "type foo;"? >> > > Yes, "type foo {}" has a restriction while "type foo;" does not have a > restricti

Re: [netmod] restricted enumeration

2016-04-29 Thread Juergen Schoenwaelder
On Fri, Apr 29, 2016 at 02:57:36PM +0200, Ladislav Lhotka wrote: > > Or are you saying that "type foo {}" is not the same as "type foo;"? > Yes, "type foo {}" has a restriction while "type foo;" does not have a restriction. OK, I think I see your point now that we have a case where there is a sub

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 14:41, Juergen Schoenwaelder > wrote: > > On Fri, Apr 29, 2016 at 02:36:55PM +0200, Ladislav Lhotka wrote: >> >>> On 29 Apr 2016, at 14:30, Juergen Schoenwaelder >>> wrote: >>> >>> On Fri, Apr 29, 2016 at 02:19:08PM +0200, Ladislav Lhotka wrote: The problem h

Re: [netmod] restricted enumeration

2016-04-29 Thread Juergen Schoenwaelder
On Fri, Apr 29, 2016 at 02:36:55PM +0200, Ladislav Lhotka wrote: > > > On 29 Apr 2016, at 14:30, Juergen Schoenwaelder > > wrote: > > > > On Fri, Apr 29, 2016 at 02:19:08PM +0200, Ladislav Lhotka wrote: > >> > >> The problem here is that enum statements aren't really restrictions but > >> rat

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 14:30, Juergen Schoenwaelder > wrote: > > On Fri, Apr 29, 2016 at 02:19:08PM +0200, Ladislav Lhotka wrote: >> >> The problem here is that enum statements aren't really restrictions but >> rather specify the new set of values. It would be kind of discontinuos: with >> >>

Re: [netmod] restricted enumeration

2016-04-29 Thread Juergen Schoenwaelder
On Fri, Apr 29, 2016 at 02:19:08PM +0200, Ladislav Lhotka wrote: > > The problem here is that enum statements aren't really restrictions but > rather specify the new set of values. It would be kind of discontinuos: with > > typedef bar { > type foo { >enum one; >enum two; > } > } > >

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 14:02, Juergen Schoenwaelder > wrote: > > On Fri, Apr 29, 2016 at 02:01:08PM +0200, Ladislav Lhotka wrote: >> >>> On 29 Apr 2016, at 13:56, Juergen Schoenwaelder >>> wrote: >>> >>> On Fri, Apr 29, 2016 at 01:52:33PM +0200, Ladislav Lhotka wrote: Hi, if w

Re: [netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
> On 29 Apr 2016, at 13:56, Juergen Schoenwaelder > wrote: > > On Fri, Apr 29, 2016 at 01:52:33PM +0200, Ladislav Lhotka wrote: >> Hi, >> >> if we have >> >> typedef foo { >> type enumeration { >>enum one; >>enum two; >> } >> } >> >> typedef bar { >> type foo; >> } >> >> what is

Re: [netmod] restricted enumeration

2016-04-29 Thread Juergen Schoenwaelder
On Fri, Apr 29, 2016 at 02:01:08PM +0200, Ladislav Lhotka wrote: > > > On 29 Apr 2016, at 13:56, Juergen Schoenwaelder > > wrote: > > > > On Fri, Apr 29, 2016 at 01:52:33PM +0200, Ladislav Lhotka wrote: > >> Hi, > >> > >> if we have > >> > >> typedef foo { > >> type enumeration { > >>enu

Re: [netmod] restricted enumeration

2016-04-29 Thread Juergen Schoenwaelder
On Fri, Apr 29, 2016 at 01:52:33PM +0200, Ladislav Lhotka wrote: > Hi, > > if we have > > typedef foo { > type enumeration { > enum one; > enum two; > } > } > > typedef bar { > type foo; > } > > what is the set of values permitted for "bar"? Is it empty or the > same as for "foo"?

[netmod] restricted enumeration

2016-04-29 Thread Ladislav Lhotka
Hi, if we have typedef foo { type enumeration { enum one; enum two; } } typedef bar { type foo; } what is the set of values permitted for "bar"? Is it empty or the same as for "foo"? Lada -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C _