PATCH: Problem union comparision in TUI

Eli Zaretskii eliz@gnu.org
Wed Oct 19 20:03:00 GMT 2005


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



More information about the Gdb-patches mailing list