[Dev-luatex] .BEILMOPS or how I stopped worrying and love Open Source

Heiko Oberdiek oberdiek at uni-freiburg.de
Thu Dec 13 21:18:39 CET 2007


On Thu, Dec 13, 2007 at 08:42:05PM +0100, David Kastrup wrote:

> Taco Hoekwater <taco at elvenkind.com> writes:
> 
> > Heiko Oberdiek wrote:
> >> 
> >> \catcode`\{=1
> >> \catcode`\}=2
> >> \directlua0{
> >>   do
> >>     local foo
> >>     error("Error in third line")
> >>   end
> >> }
> >> \endlinechar=10 %
> >
> > Also:
> >
> > \directlua0{
> >     do
> >       local foo -- not used
> >       error("File gives an error because the comment does not end")
> >     end
> >   }
> 
> Well, it's LuaTeX, not Luaweb or so.  So just use
> 
> \directlua0{
>     do
>       local foo % not used
>       error("File gives an error because the comment does end")
>     end
>   }

  local s = "abc.def.ghi"
  string.gsub(s, "%.", "/") % ups

;-)

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the dev-luatex mailing list