D-

D++lang

A new way to program.

How to install?

irm https://raw.githubusercontent.com/Angel25051/d-lang/main/installers/installar.ps1 iex

Official D Language Documentation

Titan Engine v1.0 Release — Declaration of Syntactic Sovereignty Author: Ángel The D language is complete, autonomous, and absolute. Everything that works in compilation is enshrined in its syntax.


D Language Syntax

Every form, every token, every reserved word, every operator, every control structure, every valid construct: all of this constitutes the official D syntax. This is the formal documentation.


High-Level Constructs

The D language defines new, more expressive, powerful, and safer forms:

type — structure definition

type Person {
name: str;
age: int;
}

def — typed function declaration

def int add(int a, int b) {
return a + b;
}

own — explicit memory ownership

own str hello = strdup("Hello world");

Memory is freed upon exiting the block.

print(f"Age is {person.age}");
``"

#### `import`  direct modular loading

```d
import math;

Access standard and custom modules.

Anonymous {} Blocks and Free Nesting

if (condition) {
{
own ​​str message = strdup("Hello");
println(message);
}
}

D Language Operators


Precedence and associativity

D respects the universal operator precedence table, as recognized by compilers.


Reserved Words and Recognized Constructs

inline
restrict
noreturn
_Thread_local
_Alignas
_Alignof
_Generic
_Static_assert
_Atomic

Fundamental Macros

__FILE__
__LINE__
__DATE__
__TIME__
__func__
__STDC__
__STDC_VERSION__

Conditional Compilation

#ifdef IDENTIFIER
#elif defined(OTHER)
#else
#endif

Technical Extensions Supported by D

__attribute__((...))
__declspec(...)
__builtin_popcount()
__sync_fetch_and_add()
__asm__ __volatile__("instruction")

Calling Conventions

__attribute__((cdecl))
__attribute__((stdcall))
__attribute__((fastcall))

Standard D Language Headers

#include <fenv.h>
#include <dirent.h>
#include <syslog.h>
#include <sched.h>
#include <ucontext.h>
#include <complex.h>

Full C Library Support

D++lang is fully compatible with all C libraries — standard or external — as long as they are correctly installed on the system and available at compile time.

You may include any C header and call its functions directly:

#include <math.h>
#include <raylib.h>

def int main() {
    println(f"sin(0.5) = {sin(0.5)}");
    InitWindow(800, 600, "Raylib in D++lang");
    CloseWindow();
    return 0;
}

**This is D. No copying, no inheritance. Everything that compiles in D is from D.**
**D is a sovereign language. It contains everything.**



D++lang Standard Library

The D++lang Standard Library is designed to be a collection of essential modules similar to Python’s standard library. Our goal is to encourage rapid development and widespread adoption by making it easy for developers to integrate with external libraries and build robust applications.

Key Modules

Design Principles

How To Contribute

We want D++lang to become not only a powerful language but also one with a strong, vibrant community. Here’s how you can help:

With a community-driven effort, D++lang aims to surpass languages like C by blending simplicity, control, and rapid integration of libraries—even if its user base starts small.

Happy coding with D++lang!