lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, Apr 20, 2014 at 9:54 PM, Paige DePol <lual@serfnet.org> wrote:
> `fvalue` and `setfvalue` are already in use for light c functions, which is why I suggested `r` for "real".
>
> What confusing connotation are you referring to, by the way?

When designing a language, the concepts of "lvalue" and "rvalue" come
into play. An "lvalue" is an expression that can be assigned to (that
can appear on the "L"eft hand side of an = sign), and an "rvalue" is
anything that isn't an lvalue (that is, something that can only appear
on the "R"ight hand side of an = sign).

Overloading "rvalue" to mean "real value" might cause some semantic
dissonance in those reading the code.

/s/ Adam