Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Hexadecimal float constants Date: Tue, 13 Jun 2017 14:22:09 -0700 Organization: None to speak of Lines: 32 Message-ID: References: <593F0753.9040003@dignus.com> <27beaf10-7fcd-4323-813f-8cec20202fd7@googlegroups.com> <4996d741-d2cf-42a6-8515-02a0e954bf09@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="3c5458cd01e27031549862a8458a90ae"; logging-data="3072"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VQ1/zgjr0Nf9Z0oMuX59Z" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:kM5KLh4WIsSFBHOBVykyWkxYOsM= sha1:OEKy03zj/n1zWeqFiWOzzTskVFE= Xref: csiph.com comp.lang.c:112134 bartc writes: > On 13/06/2017 19:58, Keith Thompson wrote: >> bartc writes: [...] >>> A redesign however may not have a preprocessor, and probably wouldn't >>> have octal constants like that. And, if it did want to have macro calls >>> such as M(08) or M(7F), would find a better way of doing it. >> >> Any such "redesign" would have to be a new language. You can have a >> C-like language without a preprocessor, > > The preprocessor excluding macro calls is not a problem (in not > presenting any implementation problems). That is, #include and #if/#endif. > > Macro processing, especially function-like macros, /is/ a problem. #if and #include are handled by the preprocessor. Apparently you meant to propose removing macros, not removing the preprocessor entirely. Even in that case, I stand by my previous statement. I don't believe any future C-like language that omits macros would break tons of existing valid C code, and would not be called "C". If you implement such a language yourself, I encourage you to give it a different name. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"