lua-users home
lua-l archive

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


Hello,

Just a quick (and maybe dumb) question: isn't there any 'empty' statement ? Here is the reason of my very small problem:

$ lua
Lua 5.0.2  Copyright (C) 1994-2004 Tecgraf, PUC-Rio
> print("foo")
foo
> print("foo");
foo
> print("foo"); print("bar");
foo
bar
> print("foo");;
stdin:1: unexpected symbol near `;'
> print("foo"); ;
stdin:1: unexpected symbol near `;'

I don't quite see a good reason for the empty statement not beeing valid here...