Re: C and Tk



In article <mvt2c1l43skh49lfjvmc0ohau8fqep0ms8@xxxxxxx>,
Alan Balmer <albalmer@xxxxxxxxxxx> wrote:
>>In satifying your statement, would you describe the use of the 'asm'
>>keyword as not being an interface? Its presence certainly admits that
>>other languages exist, but it isn't really an *interface*.

>Neither is it part of the C language.

'asm' and 'fortran' are part of K&R C. K&R 2nd edition, section
A2.4 Keywords,

"Some implementations also reserve the words fortran and asm."


C89, in the Rationale, section 3.1.1 Keywords, notes,

The keywords entry, fortran, and asm have not been included since
they were either never used, or are not portable. Uses of fortran
and asm as keywords are noted as common extensions.



I'm not a sharp enough language-lawyer to resolve this question:

When the C89 standard admits of something being a "common extension"
then is a compiler "non-compliant" for implementing that extension
(e.g., due to potential clashes with use of those words in code)?

If so, would it be sufficient for the compiler to provide a means to
turn off recognizition of the extension?
--
Look out, there are llamas!
.



Relevant Pages

  • Re: keyword capitalization -- current practice
    ... I'd like to know what is the most common, current practice ... with regards to capitalizing keywords in Fortran. ... old fogey of a language that is not up to date. ...
    (comp.lang.fortran)
  • Re: OT: Notepad2 highlighting file
    ... if anybody knows a place where I could find all fortran keywords ... maybe you could try gVim for Windows: ... because of gVim very advanced syntax highliting ...
    (comp.lang.fortran)
  • Re: keyword capitalization -- current practice
    ... I'd like to know what is the most common, current practice ... with regards to capitalizing keywords in Fortran. ... I believe that capitalization is most common with "keywords" being all caps. ... Principle 1 includes all of the principles and practices that experience has shown to be valuable in writing high quality code. ...
    (comp.lang.fortran)
  • Re: keyword capitalization -- current practice
    ... I'd like to know what is the most common, current practice ... with regards to capitalizing keywords in Fortran. ... will appear more natural to a Fortran audience but look old-fashioned ... Remember that Fortran is case **INSENSITIVE** with respect to **BOTH** keywords and names. ...
    (comp.lang.fortran)
  • Re: Professional programmers coding conventions for Fortran
    ... > reading Fortran code on the Internet, it seems to me that old FORTRAN 77 ... > lot of codes using all capital letters for keywords, ... in uppercase, to make it clear that there is something 'special' about ... identifiers, I use underscore to separate words. ...
    (comp.lang.fortran)