Nadav Har'El wrote:

>Which means the jmp_buf type is an array. In C you can't normally assign
>arrays like you did (because C thinks you're trying to assign pointers, rather
>than the content of the array), so either do
>

Slight correction. I know I lost a bet over this, and I know many people 
make this mistake.

The compiler doesn't view arrays as pointers. Arrays and pointers are 
distinct things in C. They are easily castable one into the other, hence 
the common misconception, but they are defenitely distinct.

This is the reason that 2d arrays take n*m*sizeof(type), and not 
n*m*sizeof(type)+n*sizeof(type *).

        Sh.



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to