This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why are we not using const?


On 27/06/06, Andrew Haley <aph@redhat.com> wrote:
OK, now you're getting the idea, you need to think about the
difference between

   const union tree_node *
   union tree_node *const
   const union tree_node *const


My fault then, I was erroneously assuming that if "tree" is equal to "union tree_node*" then "const tree" is equal to "const union tree_node*". I learnt something new today! Thanks to everyone that answered.

Cheers,

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]