Once upon a time, Nico Kadel-Garcia <nka...@gmail.com> 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 <li...@cmadams.net>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to