Re: availability of "typeof" keyword

From: Marty Freitas (marty_at_convex.hp.com)
Date: 09/29/05


Date: 28 Sep 2005 23:47:40 -0600

Arkadiy wrote: not in a
: How does a user of HP aC++ determines whether the typeof (or
: __typeof__) keyword is available? Is there any symbol defined that can
: be tested?

aC++ on PA doesn't support it. But PA HPC does, at least with __HP_cc=111108.

: Is there anything similar in HP aC++?

For aCC6, you can use -Agcc to support it.
For A.06.05, _HP_GNUC_COMPATIBLE is defined with that option.



Relevant Pages

  • RE: Getting AppSetting from app.config
    ... The VB.NETequivalent is the keyword "GetType". ... For more information on the keyword typeof and GetType, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: [PATCH/RFC] CodingStyle updates
    ... You could mention typeof too, which is a keyword but should be done like ... Hm, is that a gcc-ism? ... As long as is used in kernel code, ...
    (Linux-Kernel)
  • Re: isFunction (Code Worth Recommending Project)
    ... I did not suggest to avoid parentheses in a `typeof' ... operation altogether. ... that the `typeof' keyword be followed by space so as to indicate it is ...
    (comp.lang.javascript)
  • Re: [PATCH/RFC] CodingStyle updates
    ... You could mention typeof too, which is a keyword but should be done like sizeof. ... Are there other gcc-isms that I should add? ...
    (Linux-Kernel)
  • Re: Newbie: When to use typeof() function
    ... string is just a *keyword* that express a type. ... would need to use typeof(). ... the types at design time. ...
    (microsoft.public.dotnet.languages.csharp)