[sv-bc] Editorial error in 21.2.1.7

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Jul 27 2009 - 23:04:55 PDT
Hi,

I have spotted what appears to be a clear editorial error in 21.2.1.7.
The error appears in the proposal for Mantis 1750 itself.

The text contains this example:

module top;
typedef enum {ON, OFF} switch_e;
typedef struct {switch_e sw; string s;} pair_t;
pair_t va[int] = '{10:'{OFF, "switch10"}, 20:'{ON, "switch20"}};
initial begin
$display("va[int] = %p;",va);
$display("va[int] = %0p;",va);
$display("va[10].s = %p;", va[10].s);
end
endmodule : top

This example may print:

va[int] = '{10:'{sw:OFF, s:"switch10"}, 20:'{sw:ON, s:"switch20"}} ;
va[int] = {10:{OFF switch10} 20:{ON switch20}} ;
va[10].s = "switch10";

The second display line,
va[int] = {10:{OFF switch10} 20:{ON switch20}} ;
seems missing many punctionation marks.

It should probably be
va[int] = '{10:'{OFF, "switch10"}, 20:'{ON, "switch20"}};


Also, the title of this subclause should be changed from "Assignment Patterns" to "Assignment pattern format", to be consistent with the titles of 21.2.1.5, 21.2.1.6, and 21.2.1.8.

Thanks,
Shalom

Shalom Bresticker
Intel LAD DA
Jerusalem, Israel
+972  2 589 6582 (office)
+972 54 721 1033 (cell)


---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jul 27 23:07:58 2009

This archive was generated by hypermail 2.1.8 : Mon Jul 27 2009 - 23:09:07 PDT