[sv-bc] Either Section 21.2.1.1 is wrong or its example is...

From: Greg Jaxon <Greg.Jaxon@synopsys.com>
Date: Mon Feb 06 2012 - 15:54:29 PST
This section gives us Table 21-1 "Escape sequences for printing special characters" a duplicate of Table 5-1 with one
unnecessary additional row. It says these escapes apply to the string argument to $display() et al.

In fact, these escapes do not apply to format string argument(s) of $display!
If they did, the redundant application
(after Table 5-1 applied them to the string literal as it became a string argument)
would cause the example to print just "\t\n\"S" (with no backslashes).

I believe the entire subsection and Table 21-1 should be deleted, and the mention of '\' escapes in the
the discussion of $display arguments should at most remind us that firstly Table 5-1 would
affect the string literal argument after which $display will seek '%' prefix format specifiers.
In particular, $display( "100\%dead" ); contains a %d format specifier, which requires a (missing) extra argument.

Greg Jaxon
 

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Mon Feb 6 15:55:10 2012

This archive was generated by hypermail 2.1.8 : Mon Feb 06 2012 - 15:55:22 PST