In ultimate frisbee, a forced turnover. A D is a very very good thing, and are reasonably rare. Our team is doing pretty well to get 10 Ds in a game, even against a weak team. Lay out Ds are even better, because they are much much cooler and more bad-assed. After a D, you should not pick up the disc, because it is very likely that you will throw the disc away from all the adrenaline pumping through your body. If you do happen to catch on D, i.e. intercept a pass by the other team, you should look dump right away. A D does not have to be an interception. Anything that forces a turnover, a point block, a blocked pass, or knocking the disc out of bounds is a D.
Also, the symbol for a British penny, used before the monetary system was decimalized in 1971. Nowadays p is the preferred designator. In medieval days, most official documents were written in Latin, where denarius was the word used for penny, hence the d.
XXO
======
||||||
------
|||1|2 2nd fret
------
||||3|
------
||||||
------
DADF
#
Notes: 1 : D
3 : F#
5 : A
Everything Guitar Project : The Everything Guide to Guitar Chords : D
This is a brighter, more open sounding chord than the standard XX0232 fingering. Strictly it is D5, a power chord missing the major third. Good for acoustic guitar backing to vocals.
-5-
-3-
-2-
---
-X-
-X-
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
See also: Ð, ð, þ, Δ, δ, Ð, Þ, Ď, ď, Đ, đ, ɖ, ɗ
DE / DEE
The fourth letter and a consonant in the modern English alphabet
See also: Delta, Phonetic alphabet
The fourth highest letter grade in schools, colleges, and universities, usually representing a percentage grade between 65% and 69% meaning "below average" (but usually still passing).
Example: I got a D on my report card
See also: D+, D-, GPA, Grade Point Average
Used as the contraction of had, would, and did
Examples: He'd already left for the store. I'd rather go by myself. Who'd you think did it?
A vitamin
See also: Vitamin D, lumisterol, calciferol, ergocalciferol, cholecalceferol, calcitriol
A battery size/type for larger power consumption in electronic devices. Often called a flashlight battery
See also: D battery
The Greek numeral for four (4)
See also: Delta
The Roman numeral for five hundred (500)
The hexadecimal digit for the decimal number thirteen (13) (D16 = 1310)
The second tone of the C major scale
A relatively large cup size for brassiers
See also: bra, bra size, D cup
An abbreviation for several units of currency including: penny (British - held over from the Latin "denarius"), Denarius (Roman), Dinar (Tunisia), Drachma (Greek)
The New York Stock Exchange (NYSE) stock symbol for Dominion Resources Inc
An undenominated US postal stamp rate worth 22 cents and issued on November 17, 1985
A common abbreviation for several words/terms including: daily, dam, data, date, daughter, day, daytime, dead, death, debye, deceased, deci, decimal, decrement, dedicated, deed, defense, degree, delete, Democrat, denarius, density, department, depth, deputy, deus, deuterium, Deutschland, dextrorotatory, diameter, diastolic, dice, die, differential, digit, digital, dimension, diopter, display, distance, dorsal, dose, drag, drag force, drain, draw, drift, drive, drum, Dublin, Duchess, Duke, Dutch, aspartic acid, Cohen's measure of effect size
See also: 2D, 3D, 4D, D4, D5, D6, D8, D12, D20, D100, D cup, D&D, D-day, drop d
/msg me any other D's or d's you can think of...
Braille: * *
. *
. .
"Within C++, there is a much smaller and cleaner language struggling to get out." —Bjarne Stroustrup, The Design and Evolution of C++
The D programming language aims to be an evolution of C++. A C++ coder looking at D code will likely feel quite at home, though a few things will jump out at them as odd.
Fair warning: I may get somewhat technical during the course of this writeup. If your eyes start to glaze over, don't say I didn't warn you.
The home of D is on Digital Mars' website:. The Digital Mars D compiler (dmd), which is currently the most complete implementation of the language, may be found there. It is available for Windows and Linux. This version is written by Walter Bright, who designed the languge. (Walter Bright also designed Zortech C++, the first native C++ compiler.)
Another D compiler, the GNU D Compiler (gdc), which acts as a front-end to GCC, may be found at. It is available for a variety of platforms that GCC supports, including Linux, Cygwin, MinGW, and Mac OS X.
Like C++, D is a multi-paradigm language. It offers procedural, functional, object-oriented, and generic programming features. Also like C++, it is statically typed, and compiles directly to machine code. Unlike C++, it is garbage collected.
Also unlike C++, D does not aim to be back-compatible with C. This mainly allows D to clean up the syntax a great deal (no more trailing semicolon on struct and class definitions, for instance). It is, however, link compatible with C. Using most C APIs from one's D code is usually just a matter of re-writing the C header file in D. This has already been done with the entire C standard library, the Windows API, and the Linux API, and these are all part of the std.c section of the D standard library. Several other popular C libraries (such as SDL and OpenGL) have D bindings available as well.
D's standard library (which is called Phobos) is little more than adequate. It duplicates some of the functionality of the C standard library and has some more modern functions. These include .zip archive support, computation of MD5 digests, and input and output streams (which seem to have more in common with Java streams than C++ streams). Again, the entire C standard library is still available to fill in missing functionality.
Most notably missing from the standard library is a standard template library. There is a D Template Library project out there, but it remains a work in progress. The lack of such a library is somewhat mitigated by the fact that dynamic arrays (like C++'s std::vector) and associative arrays (sort of like C++'s std::map, only implemented with a hash table rather than a red-black tree) are built-in language features. Strings are simply dynamic arrays of type char.
Though D most closely resembles C++, it also steals a number of features from other languages. The one it takes the most from is Java, though it takes a wee bit of inspiration from languages like Python and Ruby. Perhaps the largest difference between D and C++ is the removal of multiple inheritance in favor of mixins and Java-style interfaces.
Actually, I take that back. The biggest difference between D and C++ is that it is garbage collected. This solves a great many problems caused by manual memory deallocation (viz. memory leaks). It is suprisingly common among C and C++ users to look down upon garbage collection as either slow, or for lazy coders. In my personal case, I did so because Java's garbage collector is (or perhaps was as I haven't bothered with the language in some time) not very good. D's promises to be pretty good. (Not least because the delete operator will immediately call the object's destructor, removing a major gripe about Java's GC, viz. the lack of deterministic destruction. It also has the probable speed advantage of compiling to machine code.)
If a user wishes to manually allocate their memory anyway, the C standard library is still available, meaning malloc and free are still available for abuse. Additionally, a class may overload the new and delete operators to get around the garbage collector entirely.
D does two more things that Java does and C++ does not: First, all objects are instantiated by reference. Second, all classes ultimately derive from a class Object. (However, templates in D may still accept primitive types as arguments, so the language neatly ignores the wrapper class hell that Java can put people through. It also still supports operator overloading.)
Although references are now the "default" choice for everything except the primitive types, pointers are still available. The primary use for pointers is for ease of integration with C libraries, though they also allow low-level systems work. For typical, "day-to-day" use, references alone will usually serve. Several C++ oddities are reversed: this and new return references rather than pointers, and a null keyword is introduced to represent both the null pointer (assigning a pointer to 0 is now an error) and the null reference.
An overview of the other features of the language may be found at. The language spec (which is the closest thing the language has to documentation) may be found at. The spec is quite technical in nature, and is probably incomprehensible to anyone who doesn't already know C++ (or Java, though the language is closer to C++).
C++:
std::vector<int> v;
D:
dtl.Vector!(int) v;
(or:)
int[] v;
#include <iostream>
int main(int argc, char* argv[]) {
std::cout << "Hello world!\n";
return 0;
}
import std.stdio;
int main(char[][] args) {
writef("Hello world!\n");
return 0;
}
(It is also worth noting that void main(), void main(char[][] args), and int main() are defined as equally valid forms of main() in the spec.)
void main()
void main(char[][] args)
int main()
template<class T> class A {
T m_t;
public:
A(T t) : m_t(t) { }
// Adds the argument to m_t, returns result.
T add(T u) { return m_t + u; }
};
class A(T) {
T m_t;
public:
this(T t) { m_t = t; }
/**
* Adds the argument to m_t, returns result.
*/
T add(T u) { return m_t + u; }
}
(D supports normal C++-style // comments, C-style /* */ comments, Java-style /** */ doc-comments, and nestable /+ +/ comments.)
D .
Log in or register
to write something here or to contact authors.