Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!husc6!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: binary constants (??) Keywords: macro, constant, binary Message-ID: <15346@haddock.ima.isc.com> Date: 4 Dec 89 22:31:04 GMT References: <305@frf.omron.co.jp> <20830@mimsy.umd.edu> <20989@mimsy.umd.edu> <11708@smoke.BRL.MIL> <7157@ficc.uu.net> <11726@smoke.BRL.MIL> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 20 In article <11726@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >Fibonacci bases are more useful than this, and why limit variable radix to >(a) constants and (b) positive radix? Those are of comparatively little >utility. Because, with that limitation, there exists a simple notation that works (the proposed NrNNN). Why does strtol() have the same limitation, after all? I like the idea of generalized radix (for D; it's too late for C) because it includes the three common non-decimal radices (2, 8, 16) and because it does so with a single syntax. (C currently handles only two of these, and in the process uses two different notations, one of them rather counterintuitive.) The fact that the same feature would allow base 21 is only marginally relevant. To quote Chris Torek, "it is often better to get rid of specifics and move toward abstracts." In fact, if the syntax would permit it cleanly, I wouldn't have an upper limit of 36, either. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint