lua-users home
lua-l archive

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


It was thus said that the Great René Rebe once stated:
> 
> Instead of doing it right, look for others who do it worse?

  I think it's more an investigation of "how do other languages handle
this?" than trying to look for worse.

  C, using fgets(), would print:

hellohellohellohellohello

  but only because of the way C treats NUL in strings.

  -spc (getline() and getdelim() would avoid this, I know, but not all
	systems that have C have those two functions)