RE: [sv-bc] confusion during construct of string for $typename()

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Dec 17 2007 - 01:48:58 PST
Hi, 

Here is part of your answers.

>    a `$' is used as the placeholder for the name of an 
> anonymous unpacked array. But at the example of the 
> description for $typename
>    LRM said that $typename(X) will give
> "enum{A=32'd0,B=32'd1,C='32d99}A::e$1 " as output  for definition
>    enum {A,B,C=99} X, belongs to the package A. But it 
> contradicts the above statement because  anonymous enum 
> definition has no unpacked
>    dimension. So the output will be 
> "enum{A=32'd0,B=32'd1,C='32d99}A::e"

It does not say that $ will be used only for anonymous unpacked arrays.

> .it is not clear to me why "$1" is appended to the output for  
>    $typename(X).

e$1 comes from 
"c) System-generated names are created for anonymous structs, unions,
and enums."

Shalom
---------------------------------------------------------------------
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 Dec 17 01:50:53 2007

This archive was generated by hypermail 2.1.8 : Mon Dec 17 2007 - 01:51:11 PST