Topic: FW: Implicit type declaration proposals ("let"or "auto") status


Author: "Igor A. Goussarov" <igusarov@akella.com>
Date: Tue, 26 Feb 2002 17:38:29 GMT
Raw View
Team Hyer wrote:
>
> There's one case no one seems to have mentioned:
>
>     int i;
>     double z;
>     auto j = i, x = z;

   Well... Since "int x, y;" is equivalent to "int x; int y;" I'd like
the declaration in your example be treated as "auto j = i; auto x = z;"
Yes, this looks odd because one might expect that j and x are of the
same type. But 'auto' is not a real _type_ it's a special keyword (or
whatever).

Igor

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]