lua-users home
lua-l archive

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


if it exists another statements after "return", the parser raise error. I'm testing in 5.1 beta. but same as 5.1 alpha, 5.02 work5/6. this is simple example.
 
function test1()
  return 1
  aaaa = 1 -- error! expect "end"...
end
 
but parser passed this source.
 
function test2()
  do
   return 1
  end
  aaaa = 1
end -- parsed successfully
 
I think this is bug. please check this.
 
--
Kwon Tai-in
http://www.redwiki.net
PGPkey: http://www.redwiki.net/pubkey