Thomas Bellman wrote:
> Lawrence D'Oliveiro <[EMAIL PROTECTED]> writes:
> 
>> "const" is in C89/C90.
> 
> Although with slightly different semantics from in C++...  For
> instance:
> 
>     static const int n = 5;
>     double a[n];
> 
> is valid C++, but not valid C.
> 

There are other differences as well. In C, I can't do something like:

int f(void)
{
   return 42;
}

const int i = f()

int main()
{
   return 0;
}

/David
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to