i love it when people call user error a "bug in the software".
what Metrowerks is talking about doing, is BREAKING the Ansi C spec if you
have "int" set to 4 bytes. they will pass literals (and who knows what
else) incorrectly, on purpose, to try to work around the user's error.
this is a very bad solution. i sure hope someone at MW realizes this before
they release the "fix". it's hard to say that an intentionally introduce
BUG constitutes a fix.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, February 07, 2000 5:46 AM
Subject: Re: StrPrintF is not working for me.
>
>
> John Marshal Writes:
> > Since StrPrintF isn't part of MSL, but instead is set in concrete in
your
> > ROM, there's no way to get it to expect 32 bit ints. Explicitly casting
> > to any of char, short, Int8, Int16 won't help because all these will get
> > implicitly promoted to int due to the default argument promotions caused
> > by `...'.
>
> John, nothing personal, but I love when people rationalize bugs in
software.
> When the Compiler offers this option that means it should work properly
when
> making calls to the kernel. Let's not use the implicit conversion rules as
an
> excuse to this end , and here is the reply I got from Metroworks
>
> HEY!
> We are aware of this problem and are working on a fix. Our Palm lead
> was for several days sick this week, so we are a bit behind. We apologize
> for the delay.
>
> Thanks for the bug report!
> We'll let you know as soon as we have a fix.
>
> Scott Mauer
> Embedded 68k/Palm QA
> Metrowerks
>
> However, I must admit your struct trick was clever way of getting around
the
> problem. I kind of found another way but yours is more elegent (readable).
>
> Thanks again
> Arman "Just a Software Guy" Nikzad
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html