Re: PATCH: Problem union comparision in TUI

Eli Zaretskii
2005-10-19T20:03:24Z

> 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.