[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: const pains with lpcode in Lpeg 0.11
- From: Coda Highland <chighland@...>
- Date: Sat, 30 Mar 2013 06:36:27 -0700
On Sat, Mar 30, 2013 at 6:04 AM, Philipp Janda <siffiejoe@gmx.net> wrote:
> What had me worried for a moment was (emphasis mine)
>
> 6.3.2.1 (Lvalues, arrays, and function designators)
> § 3 Except when it is the operand of the sizeof operator or the unary &
> operator, or is a string literal used to initialize an array, an expression
> that has type ‘‘array of type’’ is converted to an expression with type
> ‘‘pointer to type’’ that points to the initial element of the array object
> _and is not an lvalue_. [...]
What made you STOP worrying about this? It still looks completely
relevant... If you can't convert char[] to a char* lvalue, what makes
you able to assign to it?
/s/ Adam