Re: Why C/C++ errors are SO obscure/devious??
- From: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 12:12:58 -0700
Massimo Soricetti <massimo_main@xxxxxxxxxxx> writes:
> Another example: have you ever met the error line "Multiple
> definitions of..."?
>
> For example, why can't a compiler start a negotiation "on the fly"
> like this:
>
> ERROR: Multiple definitions of <variable|function|method> X.
> X defined:
> 1) <here1> as variable
> <line of code definition...>
> 2) <here2> as variable
> <line of code definition...>
> 3) <here3> as function
> <line of code definition...>
> Choose which definition is the right one:
Perhaps you should start doing all of your programming in TeX.
It will indeed give you this kind of a prompt when it encounters
an error in your source file. (However, TeX is not a very good
language for general programming.)
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
.
- References:
- Why C/C++ errors are SO obscure/devious??
- From: Massimo Soricetti
- Why C/C++ errors are SO obscure/devious??
- Prev by Date: Re: pointers
- Next by Date: Re: compare a large number of variables
- Previous by thread: Re: Why C/C++ errors are SO obscure/devious??
- Next by thread: Re: Why C/C++ errors are SO obscure/devious??
- Index(es):
Relevant Pages
|