This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: Problem union comparision in TUI
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 19 Oct 2005 22:03:14 +0200
- Subject: Re: PATCH: Problem union comparision in TUI
- References: <4353BA69.1030401@st.com> <u1x2hc1gh.fsf@gnu.org> <43561685.3010300@st.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 19 Oct 2005 10:48:53 +0100
> From: Andrew STUBBS <andrew.stubbs@st.com>
> Cc: gdb-patches@sources.redhat.com
>
> Is there any reason for using a union here?
The reason is that the code should be clean and self-explanatory.
Using the same variable for storing two utterly different objects is
IMHO The Mother Of Unclean Code.