Subject: solving the 0ctal problem - DN [1]
Jeffrey Hobbs <Jeffrey.Hobbs@icn.siemens.de> - 31 May 1999 - comp.lang.tcl
This is a multi-part message in MIME format. --------------BDEAB3614F7DB6F7A39F626E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit While reading some docs for another language, I came across a flash of insight about fixing the octal problem in an "easy" manner. What about adding dec(int), oct(int), hex(int) and base(1..36,int) to the expr command? Since people are only really seem to be encountering this problem in exprs anyway, it seems like a good fit. For most, you would just wrap the desired number in dec() (or base(10,int)) to make sure it was interpreted as a decimal num. That way people only have to know that possibly suspicious numbers (like those entered by users) that are meant to be decimals can be guaranteed to be interpreted as such with the above. -- ** Jeffrey Hobbs jeff.hobbs @SPAM acm.org ** ** I'm really just a Tcl-bot My opinions are MY opinions ** --------------BDEAB3614F7DB6F7A39F626E Content-Type: text/x-vcard; charset=us-ascii; name="Jeffrey.Hobbs.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Jeffrey Hobbs Content-Disposition: attachment; filename="Jeffrey.Hobbs.vcf" begin:vcard n:Hobbs;Jeffrey tel;cell:+49 171 827 0827 tel;work:+49 89 722 24397 x-mozilla-html:FALSE url:http://www.hobbs.wservice.com/ adr:;;;Munich;;;Germany version:2.1 email;internet:jeff.hobbs@acm.org fn:Jeffrey Hobbs end:vcard --------------BDEAB3614F7DB6F7A39F626E--
Last modified
1999-09-27
1999-09-27
(195.108.246.50)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
