[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why does lua interpreter need = in front of variables?
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: Tue, 16 Oct 2007 00:31:41 -0600
According to PiL it is simply to allow Lua to act as a calculator more easily.
'=' only is changed to "return" in interactive mode (I think) and only
if it is the first character.
i.e.
> = 5 + 5
will give you a syntax error, because '=' comes after a space.
--
-Patrick Donnelly
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."
-Will Durant