Re: [Spirit Qi %] (x%y) not semantically equivalent to (x >> *(y >> x))

Lee Clagett <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <20160527140417.14ab5be3@laptop-m1330>
On Fri, 27 May 2016 19:03:46 +0200
Frank Hein <[email protected]> wrote:

> Rather than documenting the bug I'd provide a fix.

There is no bug. If the intent was to expose `b` in `a % b` then
the documentation in the list operator would be stated differently. The
heading "expression semantics" might need some clarification in that it
only covers the inputs accepted by the generated parser, but the parser
does not extract identical attributes from those inputs. More
importantly, fixing this "bug" could break existing code:

   int_ % char_(",;")

would currently expose a `Container<int>`; a change would have to
expose an `int` and `char` in a container.

Lee

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.