Re: C, really portable?
On Sun, 11 Dec 2005 10:35:36 +0000, Mark McIntyre wrote:[color=blue]
> On Sun, 11 Dec 2005 01:44:43 +0100, in comp.lang.c , jacob navia
> <jacob@jacob.re mcomp.fr> wrote:
>[color=green]
>>There could be always provisions that allow certain parts of the
>>standard to be optional![/color]
>
> There's already quite a lot thats conditional on the implementation
> being able to support it, such as the entire IO library, the maths
> library, and so on.[/color]
You mean on a non-hosted implementation, right?
| 5.1.2.2.2 Program execution
| In a hosted environment, a program may use all the functions, macros,
| type definitions, and objects described in the library clause (clause 7).
[color=blue]
> I can think of no reason to further bloat an
> already massive document with a zillion pages entitled" this bit only
> applies if you're using Zarniwhoot C 3.6 on a MicroBeeble 5 with Snork
> 2.4 or lower OS".[/color]
You have a good point re reducing bloat.
Afaics general classes of errors for printf isn't a badly flawed
suggestion, so long as they are optional for an implementation. jacob's
claim that this would aid portable error analysis seems to be correct.
Whether this is useful enough to counter an argument of bloat minimisation
is debatable, but introducing an example that misrepresents jacob by
suggesting he intended implementation-specific wording is an inflammatory
way to go about that debate.
--
On Sun, 11 Dec 2005 10:35:36 +0000, Mark McIntyre wrote:[color=blue]
> On Sun, 11 Dec 2005 01:44:43 +0100, in comp.lang.c , jacob navia
> <jacob@jacob.re mcomp.fr> wrote:
>[color=green]
>>There could be always provisions that allow certain parts of the
>>standard to be optional![/color]
>
> There's already quite a lot thats conditional on the implementation
> being able to support it, such as the entire IO library, the maths
> library, and so on.[/color]
You mean on a non-hosted implementation, right?
| 5.1.2.2.2 Program execution
| In a hosted environment, a program may use all the functions, macros,
| type definitions, and objects described in the library clause (clause 7).
[color=blue]
> I can think of no reason to further bloat an
> already massive document with a zillion pages entitled" this bit only
> applies if you're using Zarniwhoot C 3.6 on a MicroBeeble 5 with Snork
> 2.4 or lower OS".[/color]
You have a good point re reducing bloat.
Afaics general classes of errors for printf isn't a badly flawed
suggestion, so long as they are optional for an implementation. jacob's
claim that this would aid portable error analysis seems to be correct.
Whether this is useful enough to counter an argument of bloat minimisation
is debatable, but introducing an example that misrepresents jacob by
suggesting he intended implementation-specific wording is an inflammatory
way to go about that debate.
--
Comment