Article View: comp.lang.c.moderated
Article #2134Re: NUMBER SYSTEM CONVERSION PRINTS BACKWARDS - HELP?
From: J. Kanze
Date: Fri, 01 Mar 1996 15:35
Date: Fri, 01 Mar 1996 15:35
21 lines
1493 bytes
1493 bytes
In article <4gnc9m$bpq@solutions.solon.com> stanr@tiac.net (Stan
Ryckman) writes:
|> In article <4gj14b$lsm@solutions.solon.com>,
|> J. Kanze <kanze@gabi-soft.fr> wrote:
|> [...]
|> >An even more important reason not to use the xor trick is that it
|> >doesn't work if the values to be swapped are in fact aliases for the
|> >same value.
|> I think that I know what you mean by this, but I don't think that
|> it's what you wrote. :-)
Reading it above, I'm not sure I even understand what I actually wrote.
What I meant to say, of course, is that if the two pointers passed into
swap point to the same object, the xor trick does not work.
--
James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils, études et réalisations en logiciel orienté objet --
-- A la recherche d'une activité dans une region francophone
Technical Details
Message-ID:
<4h75fv$4r6@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4g176b$mrk@solutions.solon.com> <4gfckj$2lb@solutions.solon.com> <4gj14b$lsm@solutions.solon.com> <4gnc9m$bpq@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: kanze@gabi-soft.fr (J. Kanze) Newsgroups: comp.lang.c.moderated Subject: Re: NUMBER SYSTEM CONVERSION PRINTS BACKWARDS - HELP? Date: 1 Mar 1996 09:35:27 -0600 Organization: GABI Software, Sarl. Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4h75fv$4r6@solutions.solon.com> References: <4g176b$mrk@solutions.solon.com> <4gfckj$2lb@solutions.solon.com> <4gj14b$lsm@solutions.solon.com> <4gnc9m$bpq@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com