View mode: basic / threaded / horizontal-split · Log in · Help
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?
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?
>> 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?
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?
> 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?
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?
"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?
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?
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?
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
Top | Discussion index | About this forum | D home