lua-users home
lua-l archive

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


It was thus said that the Great Jim once stated:
> i would add support for binary and octal integer literals like
> 0b1001011 or 0o0755 as in Python and Ruby.
> 
> octal integer literals are helpful when working with unix (file)
> modes/permissions (which i do frequently).

  I would not object to this, but what I would like to add is '_' to literal
numbers to aid in comprehension.  Some examples:

	x = 4_294_967_295
	y = 0xABCD_1234
	z = 0b_110_1_0010_1010_01_11

  -spc