[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Aztec C: C ++??
<aiiadict@gmail.com> wrote:
> On Apr 16, 12:11 pm, Bill Buckels <bbuck...@escape.ca> wrote:
> > However, what I will do as soon as I am able to get compiler source is
> > to provide as much ansi compliance as possible as quickly as possible
>
> I think that would be great! Do you have any leads on the source?
>
> It might be nice to have a list of differences between ANSI and K&R
> used
> by Aztec C...
The most obvious one is function parameters. K&R C has functions which
look like this:
int main(argc, argv)
int argc;
char *argv[];
{
/*...*/
}
while ANSI C allows parameter types to be defined in the function
declaration, and prototypes which declare the types of parameters. This
provides extra information to the compiler which helps with type
checking.
int main(int argc, char *argv[])
{
/*...*/
}
I'd have to hunt through old documentation to find the other major
differences as I've been using ANSI C so long I'm somewhat hazy on what
else was missing from the language in earlier versions.
--
David Empson
dempson@actrix.gen.nz