lua-users home
lua-l archive

print() vs. write()

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


 Just curious why print() has an implicit call to tostring() for
unhandled types while write() does not. So that print(t) is not equivalent
to write(_STDOUT,t.."\n"). It's adequately documented, and it's not a
problem, I was just wondering.
 Cheers,
 Dave

AltStyle によって変換されたページ (->オリジナル) /