[Dev-luatex] a problem with ~=

Hans Hagen pragma at wxs.nl
Fri Oct 5 18:20:19 CEST 2007


Eythan Weg wrote:
> Hi ,
> 
> \directlua 0{
> if ("ab" ~= "cb") then do texio.write_nl("not equal") end end 
> }
> \bye
> 
> results in
>         ! LuaTeX error [string "luas[0]"]:1: ')' expected near '\'.
> 
> This is with yesterday's svn.  

well, it fails with any version, given that you have ~ defines as active 
char that expands to something

\directlua 0 {
     if "ab" \string ~= "cb" then
         texio.write_nl("not equal")
     end
}

probably works ok at your end

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-luatex mailing list