Thread overview
Can't the dmd source files finally get a proper C++ file extension?
Jan 24, 2012
Trass3r
Jan 24, 2012
Bernard Helyer
Jan 24, 2012
Trass3r
Jan 24, 2012
Walter Bright
Jan 25, 2012
Trass3r
Jan 25, 2012
Nick Sabalausky
Jan 25, 2012
torhu
Jan 25, 2012
Zachary Lund
Jan 25, 2012
Trass3r
Jan 25, 2012
Marco Leise
January 24, 2012
It's really annoying. clang++ gives a lot of warnings and IDEs are confused as well.
January 24, 2012
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...
January 24, 2012
>> 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
January 24, 2012
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.
January 25, 2012
> Sorry, but it's needed for some ancient platform D has never and
> will never exist/ed on in.

What platform is that?
January 25, 2012
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.
January 25, 2012
"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?


January 25, 2012
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).
January 25, 2012
Exactly. Even a capital .C is recognized as C++ source code if .cpp isn't desired.
January 25, 2012
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