For faster navigation, this Iframe is preloading the Wikiwand page for D (programmeertaal).

D (programmeertaal)

Uit Wikipedia, de vrije encyclopedie

D
D
Paradigma multi-paradigma, objectgeoriënteerd
Verschenen 1999
Ontworpen door Walter Bright
Huidige versie 2.101.1[1] Bewerken op Wikidata
15 december 2022
Typesysteem type-inferentie, statisch typesysteem, sterke typering
Implementaties DMD (Digital Mars) [1], GDC (GNU) [2]
Beïnvloed door C, C++, C#, Java, Eiffel
Besturingssysteem Multiplatform
Website (mul) Officiële website
Portaal 
Portaalicoon
 
Informatica

De programmeertaal D, ontwikkeld door Walter Bright / DigitalMars is een programmeertaal die net als C, C++, Java en C# eigenschappen heeft van BCPL. D is gemaakt voor praktisch gebruik voor toepassingen binnen kleine tot (middel-)grote computerapplicaties.

Overzicht

De taal heeft ten opzichte van C++ onder andere de volgende veranderingen doorgevoerd:

  1. Geen meervoudige overerving; in plaats daarvoor komt enkelvoudige overerving met interfaces en Mixins
  2. Design By Contract
  3. RAII (Resource Acquisition Is Initialization)
  4. Unit tests
  5. Garbage collection
  6. Dynamische arrays
  7. Geen verschillende attribute operatoren zoals ->, . en :: maar alleen .
  8. Introspection
  9. Foreach-lus
  10. Geavanceerde templates en class/struct-generics

De taal is desondanks een systeemtaal, zoals C++, verschillende onderdelen kunnen ook uitgeschakeld worden.

Voorbeeld

Het bekende programma Hello world:

import std.stdio;  // Importeer I/O van en naar de console

public int main(in char[][] args) {
    writefln("Hello World!");
    return 0;
}

Zie ook

  1. Change Log: 2.101.1. Geraadpleegd op 19 december 2022.
{{bottomLinkPreText}} {{bottomLinkText}}
D (programmeertaal)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Wikiwand 2.0 is here 🎉! We've made some exciting updates - No worries, you can always revert later on