November 15, 2021 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
...like 'alias template literal' syntax: `alias(B) => B.sizeof` The only problem is currently `alias... | |||
November 15, 2021 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
...foo(x: 100, z: 200);
auto apply(alias f,T...)(T args){ return f(args... | |||
November 14, 2021 Genel » Karşılaştırma: synchronized, atomicOp, cas | |||
|---|---|---|---|
| |||
...main() {
import std.meta;
import std.traits;
alias işlevler = AliasSeq!(korumasız, korumalı, atomicOpİle, casİle);
foreach... | |||
November 14, 2021 Learn » Re: using __traits to get line number of a member | |||
|---|---|---|---|
| |||
...myClass{} // nothing to see here
void main()
{
alias allMembersOfThisModule = __traits(allMembers, mixin(__MODULE__));
string memberFile... | |||
November 13, 2021 General » Re: Store mutable indirections in immutable data with this one weird trick! | |||
|---|---|---|---|
| |||
...code. Smaller nitpic, I'd also prefer `opUnary(string op)()(if op == "*")` to `alias this`. | |||
November 13, 2021 General » Re: Want reasonable reference counting? Disable automatic sharing of immutable | |||
|---|---|---|---|
| |||
Just define a new keyword for unshared immutable and make "immutable" an alias. | |||
November 13, 2021 General » Store mutable indirections in immutable data with this one weird trick! | |||
|---|---|---|---|
| |||
...a `P`
return cast(P) data.address;
}
alias ptr this;
}
```
[Try it yourself on `run... | |||
November 12, 2021 Issues » [Issue 21073] Rebindable does not work when class has alias this to inout property | |||
|---|---|---|---|
| |||
...class has alias this to inout property The cast expression was trying an 'alias this... | |||
November 12, 2021 Issues » [Issue 21073] Rebindable does not work when class has alias this to inout property | |||
|---|---|---|---|
| |||
...class has alias this to inout property The cast expression was trying an 'alias this... | |||
November 10, 2021 Issues » [Issue 22497] Spurious dual-context error | |||
|---|---|---|---|
| |||
...foo(alias f)(int x) { return f(x); }
struct S {
static int staticFoo(alias f... | |||
Copyright © 1999-2021 by the D Language Foundation