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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Fri Apr 04 2008 - 06:00:58 PDT
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.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Apr 4 06:02:51 2008

This archive was generated by hypermail 2.1.8 : Fri Apr 04 2008 - 06:03:22 PDT