[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Creating global variables using reserved words
- From: "dariosouza" <dario@...>
- Date: Tue, 12 Mar 2002 22:07:38 -0000
Hello,
I was playing with Lua to create some automated test scripts, and
I found out the following:
Lua 4.0 Copyright (C) 1994-2000 TeCGraf, PUC-Rio
> print("dario")
dario
> print(3)
3
> print = 3
> print(3)
error: attempt to call global `print' (a number value)
stack traceback:
1: main of string "print(3)" at line 1
>
What do you say about that? ;-)
Dario