January 14, 2022 Genel » Sınıf&Yapılarda Hafıza Yönetimi'ne Giriş | |||
|---|---|---|---|
| |||
...import std.stdio; alias a1 = Point; alias a2 = Line; alias a3 = Rectangle; alias a4 = Node... | |||
January 14, 2022 Issues » [Issue 22674] New: ImportC: compatible types declared in different translation units are not treated equivalent in D. | |||
|---|---|---|---|
| |||
...d(5): Error: alias `maker.FooRef` at maker.c(1) conflicts with alias `freer.FooRef... | |||
January 13, 2022 Issues » [Issue 22672] New: Allow casting from TypeTuple to TypeTuple | |||
|---|---|---|---|
| |||
...if they are the same type is.
---
alias Tuple(T...) = T;
void foo()
{
Tuple!(int... | |||
January 12, 2022 General » @safe ref counted pointer | |||
|---|---|---|---|
| |||
...pointer/reference
}(x.get); //get is @safe
}();
}
alias ScopedSharedPtr(T) = SharedPtr!(T, true);
struct SharedPtr... | |||
January 12, 2022 Issues » [Issue 22365] Compiler crash: tcs.body_ null in StatementSemanticVisitor.visit(TryCatchStatement) in semantic3 pass (dmd/statementsem.d:3956) | |||
|---|---|---|---|
| |||
...Comment #3 from moonlightsentinel@disroot.org ---
Reduction:
alias DrawableRef = Ref!int;
class DrawableCache {
DrawableRef _nullDrawable... | |||
January 12, 2022 Learn » Re: Static indexing | |||
|---|---|---|---|
| |||
...that technique! Seems like it started allowing alias to `tupleof` in 2.094. `std.typecons... | |||
January 12, 2022 Learn » Re: Static indexing | |||
|---|---|---|---|
| |||
...taking advantage of UFCS: import std.typecons; alias Point = Tuple!(double, "x", double, "y"); unittest... | |||
January 12, 2022 Learn » Static indexing | |||
|---|---|---|---|
| |||
...Point
{
double x;
double y;
alias expand = typeof(this).tupleof;
alias expand this;
}
unittest
{
Point... | |||
January 12, 2022 Learn » Re: A slice consisting of non-consecutive elements of an array? | |||
|---|---|---|---|
| |||
...d
import std.stdio : writeln;
auto filter(alias fn, T)(T[] slice){
//InputRange:
static struct... | |||
January 11, 2022 General » Re: Discussion Thread: DIP 1042--ProtoObject--Community Review Round 1 | |||
|---|---|---|---|
| |||
...T objects) {
conditionalForward!sortImpl(objects);
}
auto conditionalForward(alias toWhat, T...)(T args) {
// only worried about... | |||
Copyright © 1999-2021 by the D Language Foundation