Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 24, 2012 Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
It's really annoying. clang++ gives a lot of warnings and IDEs are confused as well. |
January 24, 2012 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | >> 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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | 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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | > 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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | "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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to torhu | 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 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zachary Lund | Exactly. Even a capital .C is recognized as C++ source code if .cpp isn't desired. |
January 25, 2012 Re: Can't the dmd source files finally get a proper C++ file extension? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 |
Copyright © 1999-2021 by the D Language Foundation