Re: [Qemu-devel] [PATCH v2 09/16] qapi: Permit alternates with just one branch

2019-09-13 Thread Markus Armbruster
Eric Blake writes: > On 9/10/19 1:37 AM, Markus Armbruster wrote: >> A union or alternate without branches makes no sense and doesn't work: >> it can't be instantiated. A union or alternate with just one branch >> works, but is degenerate. We accept the former, but reject the >> latter. Weird.

Re: [Qemu-devel] [PATCH v2 09/16] qapi: Permit alternates with just one branch

2019-09-10 Thread Eric Blake
On 9/10/19 1:37 AM, Markus Armbruster wrote: > A union or alternate without branches makes no sense and doesn't work: > it can't be instantiated. A union or alternate with just one branch > works, but is degenerate. We accept the former, but reject the > latter. Weird. docs/devel/qapi-code-gen.

[Qemu-devel] [PATCH v2 09/16] qapi: Permit alternates with just one branch

2019-09-09 Thread Markus Armbruster
A union or alternate without branches makes no sense and doesn't work: it can't be instantiated. A union or alternate with just one branch works, but is degenerate. We accept the former, but reject the latter. Weird. docs/devel/qapi-code-gen.txt doesn't mention the difference. It claims an alt