lua-users home
lua-l archive

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


> 2017-03-03 13:03 GMT+02:00 op7ic \x00 <op7ica@gmail.com>:
> 
> > version: lua 5.3.4
> >
> > I`m not this is really a bug
> 
> Yes, we have been told to use the word sparingly. Maybe call it
> an "unintended side-effect".

Why is 'io.read(59e+9)' different from any other code that consumes
large amounts of memory (e.g., 'local a = {}; for i = 1, 1e50 do
a[i] = i end')? Is that previous loop an "unintended side-effect" too?

-- Roberto