<div dir="ltr"><div><div><div><div><div><div><div><br clear="all">Hi,<br><br>The file<br><br>----------------------------------------<br><br>\Udelcode`a=0 "28<br>\immediate\write20{\the\Udelcodenum`a}<br><br>\Udelcodenum`a= "000028<br>\immediate\write20{\the\Udelcodenum`a}<br><br>\bye<br><br><br>----------------------------------------<br><br><br>produces the error <br><br>! You can't use `\Udelcodenum' after \the.<br><br></div>In each case (using TL2015 pretest luatex)<br><br></div>These primitives are documented as being "compatible with xetex", but<br></div>xetex does not give an error here and produces<br><br>1073741864<br>40<br><br><br></div>that is <br></div>"40000028 and "28 <br></div>(I think I'd have expected "28 in both cases, but I'll query that<br></div>on xetex list).<br><br><br><div>Is it intended that \UdelcodenumĀ  can be used to extract the<br>delcode assigned to a character as a number?<br></div><div><br><div><div><div><div><div><div>Incidentally if you use \Udelcode rather than \Udelcodenum<br></div><div>in the above you get an error message that implies <br></div><div>\Udelcodenum might work:<br><br><br>! Can't use \Udelcode as a number (try \Udelcodenum).<br><br></div><div>David<br><br></div><div>I came across this trying to debug \string in xetex and started<br></div><div>to collect some test files for extended primitives common to<br></div><div>\xetex and luatex here<br><br><a href="https://github.com/davidcarlisle/utex">https://github.com/davidcarlisle/utex</a><br><br></div><div><br></div></div></div></div></div></div></div></div>