Article View: comp.std.c++
Article #3369Re: Namespace extension
From: Fergus Henderson
Date: Wed, 21 Feb 1996 16:11
Date: Wed, 21 Feb 1996 16:11
24 lines
1655 bytes
1655 bytes
>Pulkkinen Esa (esap@cs.tut.fi) wrote:
>> > 3. It makes C++ easy to study, because somebody will have to know only
>> >the general idea about templates and how to apply them to any C++ elements
>> >(function, class, namespase,...).
>
>> This would only be true if also typedef templates and union templates
>> were introduced too.
C++ already has union templates.
According to the draft standard, unions are a special sort of class,
and since we have class templates, we therefore have union templates.
(Encouragingly, the three compilers I tried all supported template unions.)
--
Fergus Henderson WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au PGP: finger fjh@128.250.37.3
---
[ To submit articles: try just posting with your news-reader.
If that fails, use mailto:std-c++@ncar.ucar.edu
FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu.
]
Technical Details
Message-ID:
<4gffm5$8d2@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<4g2aj2$bko@ugress.uib.no> <4g5e4v$cvi@peippo.cs.tut.fi> <4gf60c$cdt@ugress.uib.no>Show Full Headers
Complete Article Headers
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Message-ID: <4gffm5$8d2@mulga.cs.mu.OZ.AU> X-Original-Date: 21 Feb 1996 16:02:13 GMT Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 21 Feb 96 16:11:54 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ Subject: Re: Namespace extension Organization: Comp Sci, University of Melbourne References: <4g2aj2$bko@ugress.uib.no> <4g5e4v$cvi@peippo.cs.tut.fi> <4gf60c$cdt@ugress.uib.no> X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMStEXOEDnX0m9pzZAQHe4wF9F7RFmKziNq6Z8OUItjd2R0CaGtEwv1sO 5u0jhPAjaTKkCTLI3K4n5KupMoIlIQSw =3w3B