[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: weird (?) issue
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 7 Dec 2011 17:33:03 +0100
Hello,
Not sure if this is meant to be, but here it goes:
$ lua -v
Lua 5.2.0 Copyright (C) 1994-2011 Lua.org, PUC-Rio
print ( 'hello %s' ):format( 'world' )
> hello %s
lua: TestString.lua:1: attempt to index a nil value
Is that the expected behavior?
Of course, adding the proper parenthesis around the function call sort this out:
print( ( 'hello %s' ):format( 'world' ) )