Mail Archives: djgpp-workers/2003/11/09/14:50:01
--part1_6a.37c1c9aa.2cdff45c_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In a message dated 11/9/2003 2:17:08 PM Eastern Standard Time,
rich AT phekda DOT freeserve DOT co DOT uk writes:
> The caller can still try to set the global variable. Then the developer
> will
> wonder why it doesn't work. Hence comp.os.msdos.djgpp gets bombarded with
> user
> questions on this issue.
>
> Just because the C standard says the variable should not be modified after
> program start doesn't mean that users won't try to. How many people try
> fflush(stdin) to clear the waiting input and then wonder why it doesn't
> work?
>
The standard clearly states:
The value of math_errhandling is constant
for the duration of the program.
This means that it cannot be modified.
It seems to me that you are second-guessing the developer. A knowledge of
the standard is certainly called for in more respects than just this case.
> Would it help if I sent a patch to implement math_errhandling the way I'm
> thinking of?
>
No.
Thanks for your comments.
KB Williams
--part1_6a.37c1c9aa.2cdff45c_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<HTML><FONT FACE=3Darial,helvetica><FONT SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"=
Georgia" LANG=3D"0">In a message dated 11/9/2003 2:17:08 PM Eastern Standard=
Time, rich AT phekda DOT freeserve DOT co DOT uk writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT COLOR=3D"#000000"=
style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0">The caller can still try to set the global variable. Then t=
he developer will<BR>
wonder why it doesn't work. Hence comp.os.msdos.djgpp gets bombarded with us=
er<BR>
questions on this issue.<BR>
<BR>
Just because the C standard says the variable should not be modified after<B=
R>
program start doesn't mean that users won't try to. How many people try<BR>
fflush(stdin) to clear the waiting input and then wonder why it doesn't work=
?<BR>
</BLOCKQUOTE></FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #fff=
fff" SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0">The standard clearly states:<B=
R>
<BR>
The value of math_errhandling is consta=
nt <BR>
for the duration of the program.<=
BR>
<BR>
This means that it cannot be modified.<BR>
<BR>
It seems to me that you are second-guessing the developer. A knowledge=
of the standard is certainly called for in more respects than just this cas=
e.<BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">Would it help if I sent a patch=
to implement math_errhandling the way I'm<BR>
thinking of?<BR>
</BLOCKQUOTE><BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
No.<BR>
<BR>
<BR>
Thanks for your comments.<BR>
<BR>
<BR>
<BR>
KB Williams</FONT></HTML>
--part1_6a.37c1c9aa.2cdff45c_boundary--
- Raw text -