lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Mar 10, 2009 at 5:08 PM, duck wrote:
> [in hex notation] every character takes
> exactly the same number of bytes,

Variable v.s. fixed length is not inherent in hex or decimal form.  A
language could support "\x1\x12\x123" (variable length hex) and
"\001\012\123" (fixed length decimal).  Fixed length decimal does
leave some values undefined though:

  $ lua
  Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
  > ="\500"
  stdin:1: escape sequence too large near '"'