Re: A question on string literals



pete wrote:

> Richard Heathfield wrote:
>>
>> pete wrote:
>>
>> >> > No, that is still allowed: The array 'decomposes' into a pointer
>> >>
>> >> Incorrect. Such decay happens only in value contexts,
>
> Where are you getting that from?

Well, I must admit I was getting it from Chris Torek's constant incantations
of "The Rule", and perhaps I was over-interpreting it. The fact remains
that the conversion you expect is not guaranteed by the Standard for the
simple reason that the code itself violates a constraint.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
mail: rjh at above domain
.



Relevant Pages