March 11, 2023 Learn » Re: How can I get the scalar type of a pointer to pointer (and in even deeper levels) | |||
|---|---|---|---|
| |||
...static assert(is(Foo!(int*) == int)); static assert(is(Foo!(int**) == int)); static assert(is... | |||
March 11, 2023 Issues » [Issue 20166] among should have an overload for fixed-length arrays | |||
|---|---|---|---|
| |||
...That does what you want:
import std.algorithm.searching;
enum brackets = ['(', '[', '{', '}', ']', ')'];
static assert(brackets.canFind('('));
-- | |||
March 10, 2023 Issues » [Issue 23769] New: Lambda isn't a unary predicate for lambda that doesn't compile | |||
|---|---|---|---|
| |||
...std/algorithm/searching.d(124): Error: static assert: "`__lambda2` isn't a unary predicate function... | |||
March 09, 2023 Issues » [Issue 3872] std.algorithm.filter could become bidirectional if its input range is bidir | |||
|---|---|---|---|
| |||
...int[] a = [2, 3];
assert(only(2, 3).back == 3);
assert(a.filter!"a == 2... | |||
March 08, 2023 Issues » [Issue 23763] New: ICE on operations involving zero-initialized structs | |||
|---|---|---|---|
| |||
...init;
void main ()
{
immutable BigInt b;
static assert(a == b);
}
```
This crashes the compiler:
```
Up... | |||
March 06, 2023 Issues » [Issue 23760] New: Error: unknown | |||
|---|---|---|---|
| |||
...is(typeof(__traits(getMember, Class, memberName))))
static assert(1); // FIXME
// implementations
static foreach(oi; __traits... | |||
March 05, 2023 Genel » Re: Ali Hoca 'dan (lvalue) üzerine nefis bir örnek... | |||
|---|---|---|---|
| |||
...main()
{
auto p = &test(); // yerel değişkene referans
assert(test() == 42); // iddia -O ile başarısız olur... | |||
March 04, 2023 Genel » Re: Ali Hoca 'dan (lvalue) üzerine nefis bir örnek... | |||
|---|---|---|---|
| |||
...aslında aynı nesne arttırılmakta assert(aynısı.i == 3); // 1. kanıt assert(arr[0].i == 3... | |||
March 04, 2023 Genel » Ali Hoca 'dan (lvalue) üzerine nefis bir örnek... | |||
|---|---|---|---|
| |||
...umulurkiRef.inc();
assert(umulurkiRef.i == 3);
// Ama, dizinin içeriği hala 2! (³)
assert(arr[0... | |||
March 04, 2023 Announce » Hipreme Engine is fully ported to PS Vita | |||
|---|---|---|---|
| |||
...version of `throw` which actually only causes `assert(false)` (which is what I'm using... | |||
Copyright © 1999-2021 by the D Language Foundation