D is an object-oriented, imperative system programming language designed by Walter Bright of Digital Mars as a re-engineering of C/C++. He has done this by re-designing many C++ features, and borrowing ideas from other programming languages.
The inline assembler typifies the differentiation between D and application languages like Java and C#. An inline assembler allows a programmer to enter machine-specific assembly code alongside standard D code—a technique often used by systems programmers to access the low-level features of the processor needed to run programs that interface directly with the underlying hardware, such as operating systems and device drivers.
Built into the language is a documentation generator called Ddoc.
C++'s ABI is not supported, although D can access C++ code that is written to the C ABI, and can access C++ COM (Component Object Model) code.
D is still under development, so changes to the language are made regularly. Some of these could break D programs written for older versions of the language and compiler. The official compiler by Walter Bright defines the language itself, and it is currently in the beta testing state.
std.stdio; main(** args) { ( i, * a; args) writefln(, i, a); 0; }
The foreach statement can iterate over any collection, in this case it is producing a sequence of keys (i) and values (a) from the array args.
std.stdio;
main()
{
std.stdio;
main(** args)
{
writefln(
);
(argc, argv; args)
{
cl = CmdLin(argc, argv);
writefln(cl.argnum, cl.suffix, , cl.argv);
delete cl;
}
specs
{
count, allocated;
}
specs argspecs(** args)
C programming language family | Class-based programming languages | Curly bracket programming languages | Multi-paradigm programming languages | Systems programming languages
D (език за програмиране) | D (Programmiersprache) | Lenguaje de programación D | D (langage) | D 프로그래밍 언어 | D (linguaggio di programmazione) | D (programmeertaal) | D言語 | D (język programowania) | Linguagem D | D (язык программирования) | D (programovací jazyk) | D (ohjelmointikieli) | D (programspråk)
This article is licensed under the GNU Free Documentation License.
It uses material from the
"D programming language".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world