Re: casting



Keith Thompson said:

Richard Heathfield <invalid@xxxxxxxxxxxxxxx> writes:

The difference is that, for implementation-defined behaviour, the
implementation is required to *document* this effect. If you want to
format your drive, such a feature can be extremely useful, n'est-ce-pas?

The other difference is that, in the case of implementation-defined
behavior, the standard provides two or more possibilities and the
implementation has to pick one of them. (Unspecified behavior is the
same, except that the implementation needn't document its choice.)

Well, yes, you're right - but because you're right, it is clear that the C99
Standard is broken (again). I'm thinking of alternative forms of main()
other than the two defined by the Standard. The Standard says that main()
may be defined "in some other implementation-defined manner" but, as far as
I can tell, no alternative possibilities are described. So the implementor
who wishes to provide an alternative main() interface has zero alternatives
from which to choose.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • Re: ES format
    ... >> runtime format, even a runtime format that is trivially constant, not. ... You aren't allowed by Standard C to define any _external_ linkage ... In particular you certainly can define a 'static' function printf(), ... but otherwise it is part of the language and the compiler ...
    (comp.lang.fortran)
  • Re: VISTA
    ... One of the most powerful aspects of open source software is that you cannot make a change like the one you are suggesting - if Sun tried to change to a new closed format, the project would be quickly forked and backing companies, developers, and users would switch to the fork. ... A slightly incompatible version of this format was fast-tracked by ECMA through ISO. ... Although Open Office now supports importing these files, the standard format for Open Office is still the single *real* standard format, namely Open Document Format. ... OASIS is an independent standards group with a solid reputation, thus keeping ODF separate from any one implementation and ensuring it can be freely used by anyone. ...
    (comp.arch.embedded)
  • Re: cobol data format!!! urgent!!!
    ... misunderstood what "conformance to a standard" means. ... Cobol people 'know' binary floating-point is ... The quotation above is from IEEE 754. ... same as the IBM System/390 format which isn't the same as the Unisys MCP ...
    (comp.lang.cobol)
  • A first look at OpenOffice.org 2.0
    ... users on any operating system supported by the OpenOffice.org office suite. ... For those who wish to distribute documents in a non-editable format, ... OpenDocument file format as it's default. ... The OpenDocument format has been recognised as an open standard by the ...
    (comp.os.linux.announce)
  • Re: C99 new features
    ... found some references but after reading them I ran into ... For example, the C99 ... n1124.pdf is a draft of the C99 standard. ... Keith Thompson kst-u@xxxxxxx ...
    (comp.lang.c)