digitalmars.D - DMD coding style rules?
- asman (4/4) Apr 16 2014 is there? if so, where is it? Also, I see dmd is written in C++
- Daniel Murphy (6/10) Apr 16 2014 There are no formal rules that I'm aware of (unless somebody added them ...
- asman (3/16) Apr 18 2014 Thanks very much. In this case I can assume there's no std::
- asman (3/23) Apr 18 2014 I understood there's no formal rules but I mean, Walter will not
- Daniel Murphy (3/5) Apr 18 2014 Yes. If you started using namespaces, stl, etc it would break DDMD so i...
- Daniel =?ISO-8859-2?B?S2964Ws=?= via Digitalmars-d (3/4) Apr 16 2014 http://dlang.org/dstyle.html
- Daniel =?ISO-8859-2?B?S2964Ws=?= via Digitalmars-d (3/4) Apr 16 2014 sorry I post coding styles for D not for dmd
- Daniel Murphy (3/4) Apr 16 2014 They are similar.
is there? if so, where is it? Also, I see dmd is written in C++ but still uses C style to do stuff eg, printf() instead of cout. Is this why C++ libraries can increase a lot size (and performance?) of executable which current style don't?
Apr 16 2014
"asman" wrote in message news:maojdlxhbwuhxqrmvvjf forum.dlang.org...is there? if so, where is it? Also, I see dmd is written in C++ but still uses C style to do stuff eg, printf() instead of cout. Is this why C++ libraries can increase a lot size (and performance?) of executable which current style don't?There are no formal rules that I'm aware of (unless somebody added them to the wiki) but the (frontend) code is fairly consistent. The C-ish style is mostly due to age and Walter's preferences. This has turned out to be a huge advantage as it makes conversion to D much easier than C++-style code with heavy stl usage etc.
Apr 16 2014
On Wednesday, 16 April 2014 at 13:57:33 UTC, Daniel Murphy wrote:"asman" wrote in message news:maojdlxhbwuhxqrmvvjf forum.dlang.org...Thanks very much. In this case I can assume there's no std:: stuff and it isn't allowed, correct?is there? if so, where is it? Also, I see dmd is written in C++ but still uses C style to do stuff eg, printf() instead of cout. Is this why C++ libraries can increase a lot size (and performance?) of executable which current style don't?There are no formal rules that I'm aware of (unless somebody added them to the wiki) but the (frontend) code is fairly consistent. The C-ish style is mostly due to age and Walter's preferences. This has turned out to be a huge advantage as it makes conversion to D much easier than C++-style code with heavy stl usage etc.
Apr 18 2014
On Saturday, 19 April 2014 at 01:50:17 UTC, asman wrote:On Wednesday, 16 April 2014 at 13:57:33 UTC, Daniel Murphy wrote:I understood there's no formal rules but I mean, Walter will not like use these stuff"asman" wrote in message news:maojdlxhbwuhxqrmvvjf forum.dlang.org...Thanks very much. In this case I can assume there's no std:: stuff and it isn't allowed, correct?is there? if so, where is it? Also, I see dmd is written in C++ but still uses C style to do stuff eg, printf() instead of cout. Is this why C++ libraries can increase a lot size (and performance?) of executable which current style don't?There are no formal rules that I'm aware of (unless somebody added them to the wiki) but the (frontend) code is fairly consistent. The C-ish style is mostly due to age and Walter's preferences. This has turned out to be a huge advantage as it makes conversion to D much easier than C++-style code with heavy stl usage etc.
Apr 18 2014
"asman" wrote in message news:ktcpixnpmessxamqelmh forum.dlang.org...Thanks very much. In this case I can assume there's no std:: stuff and it isn't allowed, correct?Yes. If you started using namespaces, stl, etc it would break DDMD so it's essentially banned now.
Apr 18 2014
V Wed, 16 Apr 2014 13:32:45 +0000 asman via Digitalmars-d <digitalmars-d puremagic.com> napsáno:is there? if so, where is it?http://dlang.org/dstyle.html
Apr 16 2014
V Wed, 16 Apr 2014 13:32:45 +0000 asman via Digitalmars-d <digitalmars-d puremagic.com> napsáno:is there? if so, where is it?sorry I post coding styles for D not for dmd
Apr 16 2014
"DanielKozákvia Digitalmars-d" wrote in message news:mailman.99.1397656987.2763.digitalmars-d puremagic.com...sorry I post coding styles for D not for dmdThey are similar.
Apr 16 2014