Talk:Struct (C programming language): Difference between revisions

Content deleted Content added
m moved Talk:Struct to Talk:Struct (C programming language): Page is spcific to a data type of the C programming language. "struct" is rather cryptic and apparently used in other languages besides C. It should be a link or disamb.
question on name spaces for strutcs
Line 8:
 
The evolution seems to be that what started out as being about [[C (programming language)]] specifically got geared towards [[C++]], and then towards abstract object orientation. Later someone reacted to this and changed the redirect to the more common (but still abstract) interpretation of [[Record (computer science)]]. [[Special:Contributions/90.230.192.94|90.230.192.94]] ([[User talk:90.230.192.94|talk]]) 17:17, 8 May 2009 (UTC)
== Separate name spaces, and recommended style ==
This article should observe that struct names are a namespace separate from the main namespace of types and variables, so that one can declare
typedef struct ListNode { int val; struct ListNode *next; } ListNode;
That is, it is not necessary to use different names (ListNode_ and ListNode) for the two C views of wha is essentially the same data type.<br/>All the best, --[[User:Jorge Stolfi|Jorge Stolfi]] ([[User talk:Jorge Stolfi|talk]]) 21:57, 15 May 2009 (UTC)