Re: Carbon with UNIX
Re: Carbon with UNIX
- Subject: Re: Carbon with UNIX
- From: Alexey Proskuryakov <email@hidden>
- Date: Mon, 17 Jan 2005 13:02:48 +0300
On 17.01.2005 00:31, "Ian Krieg" <email@hidden> wrote:
> Apparently this is not exactly the reason. I made a test file and had the
> same problem you did. When I defined a struct of my own in the file, it could
> be used fine without the struct keyword. I thought perhaps it was something
> about how the API headers were treated after being included, so I found an
> arbitrary struct in another header, "_pthread_handler_rec", but it worked fine
> without the keyword "struct".
Here is a simpler test case (remember that stat is both a struct and a
function):
----------
struct aaa {};
int aaa();
int main ()
{
aaa a;
}
----------
Both gcc and Comeau dislike it. I don't know which paragraph of the
standard should be cited as a reason; but it definitely seems to be standard
behavior.
- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden