Topic: multiple typedef
Author: Stephen Clamage <stephen.clamage@sun.com>
Date: Thu, 12 Jul 2001 03:55:48 GMT Raw View
On Mon, 9 Jul 2001 16:32:08 GMT, "Radoslav Getov" <nospam@mai.com>
wrote:
>Is the following a legal code?
>
>typedef int x;
>typedef int x;
Yes. It is explicitly allowed by section 7.1.3, paragraph 2, which
says a typedef name can be redefined to the same type. It has the
following example:
typedef int I;
typedef int I;
typedef I I;
---
Steve Clamage, stephen.clamage@sun.com
---
[ 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 ]
Author: "Radoslav Getov" <nospam@mai.com>
Date: Mon, 9 Jul 2001 16:32:08 GMT Raw View
Hi,
Is the following a legal code?
typedef int x;
typedef int x;
Thanks
Radoslav Getov
---
[ 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 ]