October 02 General » Re: Move Constructors - Converting Lvalues to Rvalues | |||
|---|---|---|---|
| |||
...ref S) { /* Copy */ }
this(S) { /* Move */ }
}
void main() {
S t;
S s1 = t; // Copy
S... | |||
October 02 General » Re: Move Constructors - Converting Lvalues to Rvalues | |||
|---|---|---|---|
| |||
...destructor"); }
}
S foo(S s)=>s;
void main(){
S s=foo(S());
// ...
}
```
This prints:
```
copy... | |||
October 02 Learn » Re: Templates considered impressive | |||
|---|---|---|---|
| |||
...02X%)";
}
}
import std.stdio;
void main()
{
mixin MyCon!(double, "3.141") piNumber... | |||
October 01 Learn » Re: Templates considered impressive | |||
|---|---|---|---|
| |||
...input.format!"%-(%02X%)";
}
}
}
import std.stdio;
void main()
{
//mixin MyCon!int;/*
mixin MyCon!int zero... | |||
October 01 General » Re: Move Constructors - Converting Lvalues to Rvalues | |||
|---|---|---|---|
| |||
...Memory allocation error.");
this.size = n;
}
}
void main() {
S obj1 = S(1024);
assert(obj1.content... | |||
September 30 Genel » opApply() her derde deva! | |||
|---|---|---|---|
| |||
...import std.stdio;
enum limit = 10;
void main()
{
// önce limit kadar bir liste oluşturulur...
auto... | |||
September 30 General » What was so crazy about IFTI for parent agregate via ctor call ? | |||
|---|---|---|---|
| |||
...struct IPersonallyPresentYouDip40(T)
{
this(T t){}
}
void main()
{
auto v = IPersonallyPresentYouDip40(0); // infer `int` for... | |||
September 30 Issues » [Issue 22374] [REG 2.093] 'import std;' with -checkaction=context causes link error | |||
|---|---|---|---|
| |||
...Bright
$ cat asszer.d
import std;
void main()
{
assert(0);
}
$ dmd asszer.d
$ ./asszer
core... | |||
September 30 General » [SAOC 2024] SARIF Output Analysis and Documentation - Weekly Update #2 | |||
|---|---|---|---|
| |||
...https://github.com/royalpinto007/d-drafts/blob/main/physicalvslogical.md), which will be added to... | |||
September 28 Announce » Iota v0.3.0 final release | |||
|---|---|---|---|
| |||
...has been released. - Basic audio output works. Main things missing are handling audio device disconnections... | |||
Copyright © 1999-2021 by the D Language Foundation