Re: MSVCRT: Re-implement *printf
Style point: (*pointer).whatever is written a bit more easily as pointer->whatever. That'd make your new patch a good bit more readable. --Juan __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
On Fri, 07 Jan 2005 08:46:25 -0800, Juan Lang wrote:
Style point: (*pointer).whatever is written a bit more easily as pointer->whatever. That'd make your new patch a good bit more readable.
Are they even equivalent? My impression was that (*pointer).whatever would make a temporary copy on the stack, set it, and then immediately throw away that copy. So it wouldn't actually set it at all. If there's a finer point of C I missed here then please do enlighten me ...
On January 7, 2005 09:04 am, Mike Hearn wrote:
On Fri, 07 Jan 2005 08:46:25 -0800, Juan Lang wrote:
Style point: (*pointer).whatever is written a bit more easily as pointer->whatever. That'd make your new patch a good bit more readable.
Are they even equivalent? My impression was that (*pointer).whatever would make a temporary copy on the stack, set it, and then immediately throw away that copy. So it wouldn't actually set it at all.
What???? I don't think so. Not when I tried it 30 seconds ago.
If there's a finer point of C I missed here then please do enlighten me ...
-- Bill Medland mailto:billmedland(a)mercuryspeed.com http://webhome.idirect.com/~kbmed
Juan Lang wrote:
Style point: (*pointer).whatever is written a bit more easily as pointer->whatever. That'd make your new patch a good bit more readable.
--Juan
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
D'oh. Can't believe that slipped my mind. Thanks.
participants (4)
-
Aneurin Price -
Bill Medland -
Juan Lang -
Mike Hearn