RE: [sv-bc] Queries on enum name method

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Fri Apr 04 2008 - 06:09:26 PDT
typedef enum {CC,DD} cucu;
cucu A;
A = cucu'(2);


________________________________

	From: Surya Pratik Saha [mailto:spsaha@cal.interrasystems.com] 
	Sent: Friday, April 04, 2008 4:07 PM
	To: Bresticker, Shalom
	Cc: sv-ec@eda.org; sv-bc@eda.org
	Subject: Re: [sv-bc] Queries on enum name method
	
	
	Hi Shalom,
	'A' can't be assigned by '1' or '0'. It can be always assigned
by same type of enum or enum element. Then it is not clear, how given
value can be out side the member of enumeration.
	
	Regards
	Surya


	-------- Original Message  --------
	Subject: Re:[sv-bc] Queries on enum name method
	From: Bresticker, Shalom <shalom.bresticker@intel.com>
<mailto:shalom.bresticker@intel.com> 
	To: Surya Pratik Saha <spsaha@cal.interrasystems.com>
<mailto:spsaha@cal.interrasystems.com> , sv-ec@eda.org, sv-bc@eda.org
	Date: Friday, April 04, 2008 6:30:58 PM
	

		Suppose A is an enum variable, "enum {CC,DD} A;".
		 
		Then A.name is "CC" if A is 0, and A.name is "DD" if A
is 1.
		 
		Shalom


________________________________

			From: owner-sv-bc@server.eda.org
[mailto:owner-sv-bc@server.eda.org] On Behalf Of Surya Pratik Saha
			Sent: Friday, April 04, 2008 3:37 PM
			To: sv-ec@server.eda.org; sv-bc@server.eda.org
			Subject: [sv-bc] Queries on enum name method
			
			
			Hi,
			As per SV 1800-2005 and draft4 version:
			6.19.5.6 Name() 
			The prototype for the name() method is as
follows: 
			function string name(); 
			The name() method returns the string
representation of the given enumeration value. If the given value is not
a member of the enumeration, the name() method returns the empty string.
			
			As per the syntax, name method can't take any
value. But The description mentions something about 'given value'. What
is the meaning of that.
			
			-- 
			Regards
			Surya
			    

			-- 
			This message has been scanned for viruses and 
			dangerous content by MailScanner
<http://www.mailscanner.info/> , and is 
			believed to be clean. 

	
---------------------------------------------------------------------
		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.
		  


---------------------------------------------------------------------
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 Fri Apr 4 06:23:38 2008

This archive was generated by hypermail 2.1.8 : Fri Apr 04 2008 - 06:24:21 PDT