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

From: Steven Sharp <sharp@cadence.com>
Date: Sat Oct 16 2004 - 14:23:54 PDT

I reread 3.7, and it doesn't actually say anything about writing to an
index of a string. There is only this one example to say it is legal,
and there is no description of its meaning in the text.

The text about reading from an index in a string says that the result is
a byte. If we assume that it is also a byte when written, then an
assignment to it would act like any other assignment to an integral
type. The rightmost bits would be kept.

So my conclusion is that this comment saying a[0] = "h" is the same as
a[0] = "hi" is simply wrong. It should be fixed.

Steven Sharp
sharp@cadence.com
Received on Sat Oct 16 14:23:59 2004

This archive was generated by hypermail 2.1.8 : Sat Oct 16 2004 - 14:25:01 PDT