TIP: Click on subject to list as thread! ANSI
echo: apple
to: comp.sys.apple2,comp.sys.apple2.pro
from: dempson
date: 2008-04-17 08:49:34
subject: Re: Aztec C: C ++??

 wrote:

> On Apr 16, 12:11 pm, Bill Buckels  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{at}actrix.gen.nz
--- SBBSecho 2.12-Win32
* Origin: Derby City BBS - Louisville, KY - derbycitybbs.com (1:2320/100)
SEEN-BY: 10/1 3 14/300 34/999 90/1 106/1 120/228 123/500 134/10 140/1 222/2
SEEN-BY: 226/0 236/150 249/303 261/20 38 100 1404 1406 1410 1418 266/1413
SEEN-BY: 280/1027 320/119 393/11 396/45 633/260 267 712/848 800/432 801/161
SEEN-BY: 801/189 2222/700 2320/100 105 200 2905/0
@PATH: 2320/100 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.