Re: array
Mark McIntyre <markmcintyre@s pamcop.netwrite s:
Yes, it would have been clearer. It would also have been correct,
which your original statement quite simply was not.
--
Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mark McIntyre <markmcintyre@s pamcop.netwrite s:
On Thu, 08 Mar 2007 17:31:40 -0800, in comp.lang.c , Keith Thompson
<kst-u@mib.orgwrote:
>
>
It would have been clearer if I'd said "an array is not a simple
type".
<kst-u@mib.orgwrote:
>
>>Ben Pfaff <blp@cs.stanfor d.eduwrites:
>>
>>Good point, though I don't know whether that's what Mark meant (note
>>that he said "an array", not "array".
>>Keith Thompson <kst-u@mib.orgwrites :
>>>
>>>Mark McIntyre <markmcintyre@s pamcop.netwrite s:
>>>>An array isn't a type. Its a derived type, and has different
>>>>behaviour . Similarly structs.
>>>>
>>>No, an array type, like any derived type, is a type. For example,
>>>"int[4]" is a type, "array of 4 ints".
>>>
>>I thought about responding similarly to Mark's article, but then
>>it occurred to me that, in fact, "array" isn't a type in the same
>>sense that, say, "int" is a type. "Array of int" (e.g.) is an
>>(incomplete ) type, but "array" isn't really a type; it's more of
>>a declarator, to adopt name from the Standard's syntax
>>productions .
>>>
>>>Mark McIntyre <markmcintyre@s pamcop.netwrite s:
>>>>An array isn't a type. Its a derived type, and has different
>>>>behaviour . Similarly structs.
>>>>
>>>No, an array type, like any derived type, is a type. For example,
>>>"int[4]" is a type, "array of 4 ints".
>>>
>>I thought about responding similarly to Mark's article, but then
>>it occurred to me that, in fact, "array" isn't a type in the same
>>sense that, say, "int" is a type. "Array of int" (e.g.) is an
>>(incomplete ) type, but "array" isn't really a type; it's more of
>>a declarator, to adopt name from the Standard's syntax
>>productions .
>>Good point, though I don't know whether that's what Mark meant (note
>>that he said "an array", not "array".
It would have been clearer if I'd said "an array is not a simple
type".
which your original statement quite simply was not.
--
Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Comment