move this here, more idiomatic style

This commit is contained in:
Christine Dodrill 2015-06-15 16:13:57 -07:00
parent 65c265cb62
commit 8404630ee7
1 changed files with 9 additions and 8 deletions

View File

@ -9,12 +9,13 @@ class Buffer
table.insert @data, line
b = Buffer!
while true
n = io.read!
if n ~= nil
b\add(n)
else break
with Buffer 10
while true
n = io.read!
if n ~= nil
\add n
else
break
for _, i in pairs b\data
print i
for _, i in pairs .data
print i