Re: [sv-ec] assigning string literal to parameter

From: Neil Korpusik <Neil.Korpusik_at_.....>
Date: Mon Nov 20 2006 - 17:42:22 PST
<resending -- the reflector bounced on several recipients>

-------- Original Message --------
Subject: 	RE: [sv-ec] assigning string literal to parameter
Date: 	Sun, 19 Nov 2006 15:49:20 +0200
From: 	Feldman, Yulik <yulik.feldman@intel.com>
To: 	Bresticker, Shalom <shalom.bresticker@intel.com>, sv-ec@eda-stds.org



1364 3.6 “Strings” says:

“Strings used as operands in expressions and assignments shall be
treated as unsigned integer constants represented

by a sequence of 8-bit ASCII values, with one 8-bit ASCII value
representing one character.”



I would treat an “unsigned integer” as an integral type, making an
“assignment” of a string literal to parameter without an explicit type
declaration legal.

--Yulik.

------------------------------------------------------------------------

*From:* owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org]
*On Behalf Of *Bresticker, Shalom
*Sent:* Sunday, November 19, 2006 3:35 PM
*To:* sv-ec@server.eda-stds.org
*Cc:* Bresticker, Shalom
*Subject:* [sv-ec] assigning string literal to parameter



6.3.2 (“Value parameters”) says,

“In an assignment to, or override of, a parameter without an explicit
type declaration, the type of the right-hand expression shall be real or
integral.”

This has been interpreted by some as excluding string literals. I don’t
think that was the intent and it would not be back-compatible.

Shalom

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033

I don't represent Intel




-- 
---------------------------------------------------------------------
Neil Korpusik                                     Tel: 408-720-4852
Senior Staff Engineer                             Fax: 408-720-4850
Frontend Technologies - ASICs & Processors (FTAP)
Sun Microsystems
email: neil.korpusik@sun.com
---------------------------------------------------------------------
Received on Mon Nov 20 17:42:25 2006

This archive was generated by hypermail 2.1.8 : Mon Nov 20 2006 - 17:42:35 PST