From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <20080307102224.B032A1E8C4D@holo.morphisms.net> References: <20080307102224.B032A1E8C4D@holo.morphisms.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8A810829-4EA5-419E-AC95-8CCCEA3EC331@mac.com> Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Subject: Re: [9fans] GCC/G++: some stress testing Date: Fri, 7 Mar 2008 06:15:24 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 7282bf2e-ead3-11e9-9d60-3106f5b1d025 There was a time when you said template instead of template (Was it TC++PL 2nd edition?) The former is still allowed. It is also used when the context that a variable declaration is in is ambiguous, such as this: http://publib.boulder.ibm.com/infocenter/ pseries/v5r3/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/ keyword_typename.htm On Mar 7, 2008, at 5:21 AM, Russ Cox wrote: >> PPS: Why is "typename" a G++ reserved word? > > [now safely off-topic; sorry] > > Because it is a C++ reserved word. > It gets used in contexts (templates, in particular) > where the parser needs extra help deciding that > a name is going to be used as a type. > > Russ >