Thread: Beginning C++
View Single Post
  #15 (permalink)  
Old 06-29-2008, 09:21 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 858
Last Blog:
Programs Under the Hoo...
Credits: 0
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Beginning C++

It might have been. There are some extensions added by compiler writers that aren't language-standard. For example, say I created a C++ compiler and decided to add the non-standard keyword __class_singleton, which would force the specified class to become a singleton (i.e. only one instance possible). If you tried compiling the code on a Microsoft compiler, it'd gag and spit out an error message. If the book was written for Microsoft compilers, but he used a different compiler (or a different version), it wouldn't work.
Reply With Quote

Sponsored Links