[luatex] writing and reading a file
Dirk Laurie
dirk.laurie at gmail.com
Mon Feb 3 09:09:58 CET 2014
2014-02-02 Herbert Voss <Herbert.Voss at fu-berlin.de>:
> Am 02.02.2014 20:38, schrieb Philipp Gesang:
>>> out.close()
>> out:close()
...
> Oh no, what a shame!!! I was puzzeled 20 minutes with this problem,
> looked 10 times over the code and didn't realize the dot ...
This is one of the most common mistakes I make too.
There are two palliatives (I can't call them cures).
First:
Make it a habit to put whitespace after every `:`. It is a good habit anyway,
and the error is more visible.
Second:
~~~
require "paranoid"
~~~
where `paranoid.lua` is the attached file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paranoid.lua
Type: text/x-lua
Size: 540 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20140203/78bf9cc8/attachment.bin>
More information about the luatex
mailing list