[sv-bc] question on str.putc()

From: <Shalom.Bresticker@freescale.com>
Date: Fri Oct 15 2004 - 05:11:14 PDT

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
Received on Fri Oct 15 05:11:37 2004

This archive was generated by hypermail 2.1.8 : Fri Oct 15 2004 - 05:12:07 PDT