Re: Machine epsilon: conclusion



Richard Tobin wrote, On 30/06/07 16:26:
In article <f65s3p$pvf$1@xxxxxxxxxxxx>, Army1987 <please.ask@xxxxxx> wrote:

Add: "For the qfloat type, it invades the user name space, since I
was too lazy to call it _QFLT_EPSILON."

I'm not convinced about this. Using a leading underscore on names
intended for the user (rather than the implementation) is not helpful
to the user who wants to use the extensions. We don't see Posix using
underscored identifiers for everything.

Most Unix extensions are not in the C standard headers, rather they are provided in additional headers. Jacob could have provided a qfloat.h header, for example, without problem.

> A better plan is to provide a
switch to disable it. This works perfectly for generic C code.

I agree that a switch to disable it is a good thing.

It might be better to have a single #define of an underscored name -
perhaps _LCC_EXTENSIONS - to control all lcc's extensions, as that
allows the user to turn it on or off for individual include files.

Here you are suggesting using a leading underscore for a name intended for the user ;-)
--
Flash Gordon
.



Relevant Pages

  • Re: (fwd) Forté Agent 3.2 has now been Released.
    ... headers from subscribed groups used to be. ... I just tried Firefox for a browser this week and ended up making it the ... Downloaded Thunderbird last ... I'd recommend you make use of the available extensions and themes for both ...
    (rec.motorcycles.harley)
  • Re: Machine epsilon: conclusion
    ... to the user who wants to use the extensions. ... which were the first three headers that came to mind. ... In the particular case of qfloat, ... This would have no effect on any portable code; ...
    (comp.lang.c)
  • Re: Microsoft & GNU c++ compiler
    ... Could one not use pragmas to turn on extensions in your "master" ... header file when you include the SDK stuff, ... > something that specifies Standards conformance PLUS extended keywords. ... > compile PSDK headers is for loop scope conformance. ...
    (microsoft.public.vc.stl)
  • Re: What is a .hpp file.
    ... Ross wrote: ... Some people wants to use different extensions for C an C++ headers. ... .hpp is ...
    (comp.lang.cpp)
  • Re: Writing text in screen coordinates
    ... I've looked into extensions, and I've found what I needed. ... to get the new version of the headers, but I can get entry points to ... It would be interesting to know when new & updated headers will start ... Joseph Paterson ...
    (comp.graphics.api.opengl)