My understanding from Lua API's 
documentations<http://gittup.org/tup/lua_parser.html> is that 
+= operator will concatenates its operands, which it does but
it also converts the strings to 'tables' , is this intentional?

a = "Goodbye "
a += "World'"
foo = a .. "!!!"

$ tup
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.023s] Reading in new environment variables...
[ tup ] [0.023s] Parsing Tupfiles...
* 1) [0.004s] .
tup error [string "Tupfile.lua"]:3: attempt to concatenate global 'a' (a 
table value)
stack traceback:
[string "Tupfile.lua"]:3: in main chunk

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to