Article View: comp.std.c++
Article #3713Re: Conforming compilers should compile STL?
From: Steve Clamage
Date: Mon, 18 Mar 1996 17:47
Date: Mon, 18 Mar 1996 17:47
41 lines
2541 bytes
2541 bytes
Ehud Lamm <mslamm@pluto.MSCC.huji.AC.IL> writes:
>But isn't the standard going to include an
>implementation of the STL?
No. The standard doesn't specify implementations of anything.
>It seems to me that only specifing the interface can lead to unexpected
>problems.
The standard also specifies semantic behavior and other requirements.
Implementions may differ in various ways so long as they meet the
requirements that are in the standard. The standard tells you what
behavior you can depend on in portable code.
>As far as I know other parts of the standard library are descirbed with
>the implementation. Or is the implementation I see in magazines just the
>authors fancy?
The standard contains a few examples of partial implementations to
help describe required behavior. These are clearly marked as
"expository only", or as "Examples". Real implementations
are not required to follow the examples as long as the interface
and behavior are correct. You could ask the authors of magazine
articles where their implementations originated; they did not
come from the draft standard.
>One more question. If the STL is part of the proposed standard, won't
>compiler vendors HAVE to supply some implemenation of it?
Yes, in the same sense that they should comply with all parts of
the standard.
--
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Technical Details
Message-ID:
<4ihf7e$1ef@engnews1.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austernReferences:
<199603151701.LAA06783@frodo.pswtech.com> <Pine.A32.3.91.960315223344.90639A-100000@pluto.mscc.huji.ac.il>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern From: clamage@Eng.Sun.COM (Steve Clamage) Newsgroups: comp.std.c++ Subject: Re: Conforming compilers should compile STL? Date: 18 Mar 1996 09:47:11 PST Organization: Sun Microsystems Inc., Mountain View, CA Approved: austern@isolde.mti.sgi.com Message-ID: <4ihf7e$1ef@engnews1.Eng.Sun.COM> References: <199603151701.LAA06783@frodo.pswtech.com> <Pine.A32.3.91.960315223344.90639A-100000@pluto.mscc.huji.ac.il> NNTP-Posting-Host: isolde.mti.sgi.com X-Original-Date: 17 Mar 1996 16:39:10 GMT X-Newsreader: NN version 6.5.0 #21 (NOV) X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBMU2hrUy4NqrwXLNJAQEAAQH/bAgctXAalrjFBPHM4ZiU1uF5GuJuPUqr 0GuVpBmJa6GOtwx6rWGUHYSB6yWjSvBJeFI+OVHEQyB6TsMeg9fIZg== =cuUU Originator: austern@isolde.mti.sgi.com