Python is just as good as C++ for real apps

Grant Edwards grante at visi.com
Fri Jan 25 18:07:55 EST 2002


In article <uelkeqhc6.fsf at ctwd0143.fitlinxx.com>, David Bolen wrote:

>> int* p1,p2,p3;
>> 
>> ...would evaluate to...
>> 
>> int *p1,*p2,*p3;
>> 
>> I've always thought that this was proper. The compiler treats (int*)
>> as a type, and so it should behave like one, in my opinion.
> 
> The fact that it works like the first case always made me feel
> uncomfortable with the "int* p1" notation rather than "int *p1", since
> at least visually the former (to me) appears to apply to anything in
> its list of variables being defined.

int *p;

Think of it as meaning that *p is of type int rathing than p is
of type int*, and then it makes a bit more sense.

-- 
Grant Edwards                   grante             Yow!  Is this where people
                                  at               are HOT and NICE and they
                               visi.com            give you TOAST for FREE??



More information about the Python-list mailing list