Re: Machine epsilon: conclusion



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. A better plan is to provide a
switch to disable it. This works perfectly for generic C code.

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.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
.



Relevant Pages

  • Re: Machine epsilon: conclusion
    ... was too lazy to call it _QFLT_EPSILON." ... Using a leading underscore on names ... to the user who wants to use the extensions. ... switch to disable it. ...
    (comp.lang.c)
  • Re: Why is everthing prefixed with "_"
    ... >> beginning with an underscore are reserved for the implementation. ... Identifiers beginning with an underscore followed by a ... implementation for use as a name in the global namespace." ... its extensions. ...
    (microsoft.public.vc.language)
  • Re: Word 2007 VBA User Forms Accelerator Key
    ... Are you sure that the height of the control is sufficient for the underscore ... With the above proviso, the underscore is displayed in the ... the relevent letter is not underlined when running the form. ...
    (microsoft.public.word.vba.general)
  • Re: How to change the font of the main menu in application window?
    ... This is because the default setting in Control ... letter for keyboard navigation" is checked, so the underscore will be ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Problem with ODS_NOACCEL
    ... the button is used in an AX control ... In IE, when we press ALT key, WM_CHANGEUISTATE and WM_UPDATEUISTATE ... messages are sent to specified window and all its child windows, ... button is repainted with the underscore. ...
    (microsoft.public.win32.programmer.ui)