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

From: Steven Sharp <sharp@cadence.com>
Date: Fri Oct 15 2004 - 13:55:22 PDT

>The following example is shown right before table 3-2 in section 3.7
>
> a[0]="h"; // OK same as a[0]="hi";
>
>Note: there is actually a typo in the text here
> // OK same as a[0] = "hi" ) <--- ) should be ;
>
>This example is showing the assignment of a string to a single character of
>a. The "first" character of the string is assigned.

That would imply that a select of a single character of a string does not
behave the same way as an integral type, such as a byte. If that were the
case, then wouldn't you have to go everywhere else in the LRM that deals
with integral types and add text about characters of strings too?

Why is this being defined inconsistently with other assignments in the
language?

Steven Sharp
sharp@cadence.com
Received on Fri Oct 15 13:55:28 2004

This archive was generated by hypermail 2.1.8 : Fri Oct 15 2004 - 13:55:32 PDT