This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Make the 3rd operand of ternary '?:' bind tighter than binary '='


Hello!

On Tue, Aug 28, 2018 at 10:26 AM Yichun Zhang (agentzh) wrote:
> In the C language, the 3rd operand of the ternary operator binds tighter
> than the binary assignment operators. It is better for the stap language
> to be consistent with C in operator precedence.
>

Just for the record, I've just changed `parse_assignment ()` back to
`parse_expression ()` as per fche's suggestion and committed it to
master with his green light on IRC.

Best,
Yichun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]