This was sent to the svbc but has to do with the string data type that
was added by the svec.
-------- Original Message --------
Subject: [sv-bc] question on str.putc()
Date: Fri, 15 Oct 2004 14:11:14 +0200 (IST)
From: Shalom.Bresticker@freescale.com
To: sv-bc@eda.org
I apologize if this was already brought up.
3.7.2 putc() says that
str.putc(i,s) replaces the i'th character in str with the first character in s.
Then it says,
Note: str.putc(j,x) is semantically equivalent to str[j] = x.
My question, I would think that str[j] = x takes the LAST, not FIRST,
character if x is a string, as in the example
bit[1:4][7:0] h = "hello"; //assigns to h "ello"
Thanks,
Shalom
-- Shalom Bresticker Shalom.Bresticker @freescale.com Design & Verification Methodology Tel: +972 9 9522268 Freescale Semiconductor Israel, Ltd. Fax: +972 9 9522890 POB 2208, Herzlia 46120, ISRAEL Cell: +972 50 5441478 [ ]Freescale Internal Use Only [ ]Freescale Confidential Proprietary -- --------------------------------------------------------------------- Neil Korpusik Tel: 408-720-4852 Member of Technical Staff Fax: 408-720-4850 Frontend Technologies - ASICs & Processors (FTAP) Sun Microsystems email: neil.korpusik@sun.com ---------------------------------------------------------------------Received on Fri Oct 15 09:51:39 2004
This archive was generated by hypermail 2.1.8 : Fri Oct 15 2004 - 09:52:05 PDT