[Dev-luatex] a problem with ~=

Eythan Weg weg at indiscrete.org
Fri Oct 5 19:12:02 CEST 2007


Hans Hagen <pragma at wxs.nl>
Fri, 05 Oct 2007 18:20:19 +0200

   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

Yes, thanks. 

eythan 


More information about the dev-luatex mailing list