October 11 LDC » Re: Building for ARM 32-bit embedded | |||
|---|---|---|---|
| |||
...import core.stdc.stdio;
extern(C) void main() {
puts("Hello world");
}
$ ldc2 -mtriple=aarch64-linux... | |||
October 11 General » Corner cases in Primary Type Syntax and its proof-of-concept implementation | |||
|---|---|---|---|
| |||
...Weird
{
static int opIndex() @safe => 8;
}
void main() @safe
{
Weird[] weirds;
align(Weird[]) int x... | |||
October 12 General » Re: Move Constructor Syntax | |||
|---|---|---|---|
| |||
...Special casing random things is D's main claim to fame and the source of... | |||
October 11 Learn » std.math not installed with WSL (debian) apt install ldc | |||
|---|---|---|---|
| |||
...Sources: http://deb.debian.org/debian bullseye/main amd64 Packages Description: LLVM D Compiler LDC... | |||
October 11 General » Re: Move Constructor Syntax | |||
|---|---|---|---|
| |||
...struct S
{
int x;
int y;
}
void main()
{
auto s1 = S(42);
auto s2 = S... | |||
October 11 Learn » Re: Accessing __traits(identifier) for variadic function arguments | |||
|---|---|---|---|
| |||
...write;
else write(" = ", arg);
}
writeln();
}
void main()
{
int a = 5, b = 22;
show(i... | |||
October 11 General » Re: betterC and core.stdc modules; betterC and varargs routines | |||
|---|---|---|---|
| |||
...end(ap);
return rc;
}
extern(C) void main(int argc, const(char)** argv)
{
wrap_printf... | |||
October 11 Learn » Accessing __traits(identifier) for variadic function arguments | |||
|---|---|---|---|
| |||
...writeln(__traits(identifier, val));
}
```
Instead,
```d
void main() {
float x = 123;
float y = 456;
printName... | |||
October 10 DIP Ideas » Re: Implicit cast primitive type construction | |||
|---|---|---|---|
| |||
...char;
import std.stdio, std.variant;
void main()
{
T u; R v;
writefln("%d : %d... | |||
October 10 Issues » [Issue 20876] generated constructor always inout regardless of ability of fields to use inout | |||
|---|---|---|---|
| |||
...T other)
{
this.s = other.s;
}
}
void main()
{
{
shared S original;
S copy = original; // ok... | |||
Copyright © 1999-2021 by the D Language Foundation