Related articles |
---|
[30 earlier articles] |
Re: Pointers to "why C behaves like that ?" thp@cs.ucr.edu (2002-11-24) |
Re: Pointers to "why C behaves like that ?" stephen@dino.dnsalias.com (Stephen J. Bevan) (2002-11-24) |
Re: Pointers to "why C behaves like that ?" cgweav@aol.com (Clayton Weaver) (2002-11-24) |
Re: Pointers to "why C behaves like that ?" joachim_d@gmx.de (Joachim Durchholz) (2002-11-24) |
Re: Pointers to "why C behaves like that ?" joachim_d@gmx.de (Joachim Durchholz) (2002-11-24) |
Re: Pointers to "why C behaves like that ?" jacob@jacob.remcomp.fr (jacob navia) (2002-11-26) |
Re: Pointers to "why C behaves like that ?" jacob@jacob.remcomp.fr (jacob navia) (2002-11-26) |
Re: Pointers to "why C behaves like that ?" jacob@jacob.remcomp.fr (jacob navia) (2002-11-26) |
Re: Pointers to "why C behaves like that ?" david.thompson1@worldnet.att.net (David Thompson) (2002-11-26) |
Re: Pointers to "why C behaves like that ?" ajo@andrew.cmu.edu (Arthur J. O'Dwyer) (2002-11-26) |
Re: Pointers to "why C behaves like that ?" thp@cs.ucr.edu (2002-11-26) |
Re: Pointers to "why C behaves like that ?" thp@cs.ucr.edu (2002-11-26) |
Re: Pointers to "why C behaves like that ?" Nicola.Musatti@ObjectWay.it (Nicola Musatti) (2002-11-26) |
[30 later articles] |
From: | "jacob navia" <jacob@jacob.remcomp.fr> |
Newsgroups: | comp.compilers |
Date: | 26 Nov 2002 21:49:21 -0500 |
Organization: | Wanadoo, l'internet avec France Telecom |
References: | 02-11-059 02-11-083 02-11-100 02-11-109 02-11-135 02-11-142 |
Keywords: | C, types |
Posted-Date: | 26 Nov 2002 21:49:21 EST |
> There is still the argument that a typo might create a new variable
> instead of a syntax error, e.g.:
>
> fumds = funds + income;
>
> but, unless the typo is repeated, e.g.:
>
> funds = fumds - expenditures;
>
> the typo will produce an unused-variable warning. To insure against
> such repeated typos, the language can require a keyword to accompany
> the introduction of a new variable, e.g.:
>
> let profit = income - expenditures;
>
> In such a case the first typo above would produce a syntax error.
Yes but why not writing then:
int profit = income - expenditures;
Same number of chars... :-)
C99 lets you declare a variable anywhere in the program.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.