If an if-statement is used to write to an action parameter, programmers may still use the if-statement to contain no writes to any action parameter. Also, as Andy has pointed out, if there are 17 lines before an action parameter is written to, the issue gets interesting. But if a new tag is used with action parameter , e.g., rmw, then compiler doesn’t care about 17 lines. All p4c has to enforce is, only a rmw parameter is allowed as left hand side of an assignment statement.
Hemant
--
You received this message because you are subscribed to the Google Groups "p4-arch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to p4-arch+u...@lists.p4.org.
To view this discussion on the web visit https://groups.google.com/a/lists.p4.org/d/msgid/p4-arch/CAKvLtDZUG_dS5zJo1XEOvZqyWSy%2BEP9GOuszMWqQMMxwqv%2Bw%2BA%40mail.gmail.com.
I wonder why we discussed any solution today in action body when I had sent this email below? Do folks have an earthquake issue with rmw type for an action parameter? Using rmw parameter type does not need any change in action body.
Thanks,
Hemant
--
You received this message because you are subscribed to the Google Groups "p4-design" group.
To unsubscribe from this group and stop receiving emails from it, send an email to p4-design+...@lists.p4.org.
To view this discussion on the web visit https://groups.google.com/a/lists.p4.org/d/msgid/p4-design/04a601d959c5%244f4f3280%24eded9780%24%40mnkcg.com.