![]() | This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||
|
This is just wrong. These are NOT what C and C++ call composite types. A struct is what C calls an aggregate type. a composite type in C is a completely different type. —Preceding unsigned comment added by 192.35.35.34 ( talk) 17:37, 9 June 2009 (UTC)
I think this article and record are describing essentially the same concept. Perhaps it should be merged with that as well.
Derrick Coetzee 16:55, 5 May 2004 (UTC)
a = array[1..10] of integer;
b = record
c: 1..10;
d: integer
end;
b
actually contains the types 1..10
and integer
but a
just uses them. S-expressions are just expressions. You're probably thinking of lists but, those can be broken down further into "atoms".
Mike92591 (
talk)
00:56, 16 May 2009 (UTC)It is definitely wrong. there is no composition of types in aggregates, only a simple arrangement of older types in a structure. — Preceding unsigned comment added by 2.179.218.41 ( talk) 22:46, 27 February 2015 (UTC)
If nobody has any objections, I'm going to merge a big chunk of this article (the examples specific to C and C++) into the article struct (C programming language). I think this article has better language for the most part, but the other article covers a couple things this one doesn't. -- Libertyernie2 ( talk) 21:30, 23 July 2014 (UTC)
![]() | This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||
|
This is just wrong. These are NOT what C and C++ call composite types. A struct is what C calls an aggregate type. a composite type in C is a completely different type. —Preceding unsigned comment added by 192.35.35.34 ( talk) 17:37, 9 June 2009 (UTC)
I think this article and record are describing essentially the same concept. Perhaps it should be merged with that as well.
Derrick Coetzee 16:55, 5 May 2004 (UTC)
a = array[1..10] of integer;
b = record
c: 1..10;
d: integer
end;
b
actually contains the types 1..10
and integer
but a
just uses them. S-expressions are just expressions. You're probably thinking of lists but, those can be broken down further into "atoms".
Mike92591 (
talk)
00:56, 16 May 2009 (UTC)It is definitely wrong. there is no composition of types in aggregates, only a simple arrangement of older types in a structure. — Preceding unsigned comment added by 2.179.218.41 ( talk) 22:46, 27 February 2015 (UTC)
If nobody has any objections, I'm going to merge a big chunk of this article (the examples specific to C and C++) into the article struct (C programming language). I think this article has better language for the most part, but the other article covers a couple things this one doesn't. -- Libertyernie2 ( talk) 21:30, 23 July 2014 (UTC)