Once upon a time, Nico Kadel-Garcia <[email protected]> said: > I don't see any modern scripting language where a leading 0 would lead > to interpreting a number as octal.
I suggest you check again; I don't see any where a leading 0 does NOT lead to interpreting a number as octal Here are a few common scripting languages (just what I have installed): $ python -c 'print(010 + 1)' 9 $ bash -c 'echo $((010 + 1))' 9 $ perl -le 'print 010 + 1' 9 $ ruby -e 'puts 010 + 1' 9 $ d8 -e 'print(010 + 1)' 9 -- Chris Adams <[email protected]> _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
