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

David Bolen db3l at fitlinxx.com
Fri Jan 25 15:57:29 EST 2002


Courageous <jkraska at san.rr.com> writes:

> Which reminds me of a small curiosity. I read once that during the
> design stage, Bjarne apparently considered making it so that the
> statement:
> 
> 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.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list