www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Can't the dmd source files finally get a proper C++ file extension?

reply Trass3r <un known.com> writes:
It's really annoying. clang++ gives a lot of warnings and IDEs are  
confused as well.
Jan 23 2012
next sibling parent reply "Bernard Helyer" <b.helyer gmail.com> writes:
On Tuesday, 24 January 2012 at 02:35:43 UTC, Trass3r wrote:
 It's really annoying. clang++ gives a lot of warnings and IDEs 
 are confused as well.
Queue Walter saying that it's needed for some ancient platform D has never and will never exist/ed on in three... two...
Jan 23 2012
next sibling parent Trass3r <un known.com> writes:
 It's really annoying. clang++ gives a lot of warnings and IDEs are  
 confused as well.
Queue Walter saying that it's needed for some ancient platform D has never and will never exist/ed on in three... two...
:D
Jan 23 2012
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/23/2012 6:38 PM, Bernard Helyer wrote:
 On Tuesday, 24 January 2012 at 02:35:43 UTC, Trass3r wrote:
 It's really annoying. clang++ gives a lot of warnings and IDEs are confused as
 well.
Queue Walter saying that it's needed for some ancient platform D has never and will never exist/ed on in three... two...
Sorry, but it's needed for some ancient platform D has never and will never exist/ed on in.
Jan 23 2012
parent reply Trass3r <un known.com> writes:
 Sorry, but it's needed for some ancient platform D has never and
 will never exist/ed on in.
What platform is that?
Jan 24 2012
parent "Nick Sabalausky" <a a.a> writes:
"Trass3r" <un known.com> wrote in message news:op.v8md72wc3ncmek enigma...
 Sorry, but it's needed for some ancient platform D has never and
 will never exist/ed on in.
What platform is that?
TRS-80! Amiright?
Jan 24 2012
prev sibling parent reply torhu <no spam.invalid> writes:
On 24.01.2012 03:35, Trass3r wrote:
 It's really annoying. clang++ gives a lot of warnings and IDEs are
 confused as well.
Most compilers have switch a for specifying which language to compile as.
Jan 24 2012
parent reply Zachary Lund <admin computerquip.com> writes:
On 01/25/2012 12:25 AM, torhu wrote:
 On 24.01.2012 03:35, Trass3r wrote:
 It's really annoying. clang++ gives a lot of warnings and IDEs are
 confused as well.
Most compilers have switch a for specifying which language to compile as.
That's not the point. If a project uses C++, why give the files an extension of ".c"? I don't see any benefits what so ever from doing so and I am not aware of what compiler will only take in files with ".c" extensions. While most C++ compilers do provide such a switch, it can easily be avoided by simply changing the file extension and let the compiler determine what type of data it contains (which is the purpose of a file extension in the first place).
Jan 25 2012
parent reply Trass3r <un known.com> writes:
Exactly. Even a capital .C is recognized as C++ source code if .cpp isn't  
desired.
Jan 25 2012
parent "Marco Leise" <Marco.Leise gmx.de> writes:
Am 25.01.2012, 16:23 Uhr, schrieb Trass3r <un known.com>:

 Exactly. Even a capital .C is recognized as C++ source code if .cpp  
 isn't desired.
The poor github is also confused: https://github.com/D-Programming-Language/dmd/graphs/languages
Jan 25 2012