Przeglądaj źródła

Added "why .hpp?" Q & A

[SVN r11140]
Beman Dawes 24 lat temu
rodzic
commit
669b09a39f
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9 1
      more/faq.htm

+ 9 - 1
more/faq.htm

@@ -142,9 +142,17 @@ care about. Boost list posters are
 encouraged to include keywords in the subject like "thread",
 &quot;review&quot;, and &quot;CVS&quot; to aid message filtering.</p>
 
+<p><b>Why do Boost headers have a .hpp suffix rather than .h or none at all?</b>
+File extensions communicate the &quot;type&quot; of the file, both to humans and
+to computer programs. The '.h' extension is used for C header files, and
+therefore communicates the wrong thing about C++ header files. Using no
+extension communicates nothing and forces inspection of file contents to
+determine type. Using '.hpp' unambiguously identifies it as C++ header file, and
+works well in actual practice. (Rainer Deyke)</p>
+
 <hr>
 
-<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->30 July, 2001<!--webbot bot="Timestamp" endspan i-checksum="21063" -->
+<p>Revised <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->18 September, 2001<!--webbot bot="Timestamp" endspan i-checksum="39344" -->
 </p>
 </body>
 </html>

粤ICP备19079148号