https://forum.dlang.org/post/qatjshmizzgvsfilk...@forum.dlang.org
On Thursday, 21 April 2016 at 02:06:00 UTC, newB wrote:
How is D implemented? (Compiler, Interpreter and Hybrid). Can
you please explain why?
A computer program is usually written in high level language
described as a sour
On Monday, 23 November 2020 at 01:24:54 UTC, Max Haughton wrote:
If you want to keep things simple, use OOP (classes).
If you need to use structs, the "sumtype" may be just what you
need (it's a bit more lightweight than std.algebraic in the
standard library). If you want to implement this yo
On Monday, 23 November 2020 at 01:20:04 UTC, data pulverizer
wrote:
Hi all,
I am trying to construct a tree data structure composed of
differently (statically) typed nodes. The basic case is a
binary tree. So you have a node like:
```
struct Node(T)
{
T value;
Node* next;
Node* prev;
}
On Monday, 23 November 2020 at 01:20:04 UTC, data pulverizer
wrote:
Hi all,
I am trying to construct a tree data structure composed of
differently (statically) typed nodes. The basic case is a
binary tree. So you have a node like:
```
struct Node(T)
{
T value;
Node* next;
Node* prev;
}
Hi all,
I am trying to construct a tree data structure composed of
differently (statically) typed nodes. The basic case is a binary
tree. So you have a node like:
```
struct Node(T)
{
T value;
Node* next;
Node* prev;
}
void main()
{
auto x = Node!(int)(2);
auto y = Node!(double)(3.
On Sunday, 22 November 2020 at 03:05:45 UTC, kinke wrote:
On Saturday, 21 November 2020 at 17:25:46 UTC, Jack wrote:
I got the error:
Error: Could not execute `dmd c.o .\foo.d -offoo.exe`:
Error: unrecognized file extension o
dmd version:
DMD32 D Compiler v2.094.1-dirty
gcc version:
gcc
On Wednesday, 18 November 2020 at 23:43:15 UTC, Petar Kirov
[ZombineDev] wrote:
https://gist.github.com/PetarKirov/b4c8b64e7fc9bb7391901bcb541ddf3a
Thanks a lot!