portability

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Jan 19 04:48:24 AEST 1989


In article <16573 at iuvax.cs.indiana.edu> bobmon at iuvax.cs.indiana.edu (RAMontante) writes:
>->	pascal, fortran, cdecl, far, near, huge.
>This linking and memory-model-monkeying is inherently non-portable
>anyway; the operations just don't make any sense on most systems.

Obviously if a program USES these in the MicroSoft sense, it is
non-portable.  However, if it uses them for its own purposes, then
it may very well break when ported to a MicroSoft implementation.
One hopes that MicroSoft will provide alternative names within the
name space reserved for implementations (e.g. "__pascal") for these
extensions, in which case those names would not need to be disabled
for standard conformance.  But the non-underscore names DO need to
be disabled to conform to the standard (unless, as I mentioned
before, the compiler is smart enough to allow all strictly
conforming programs to use the names for their own purposes, with
MicroSoft's special meaning active only in cases that could not
occur in a strictly conforming program).

>Hey!  What'd you do with the 'entry' keyword?!?!?  A 'goto' is only half
>a 'goto' if I can't have multiple entries to a procedure!  Cheee....

"entry" never was supported by the AT&T UNIX C compilers.  I guess by
the time Dennis and Steve got around to worrying about it, they had
realized that it was not an idea that should be encouraged.  X3J11
quit reserving it as a keyword because there was no point in doing so.



More information about the Comp.lang.c mailing list