4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...6c2f4b9c41cef5895efd3c1161920a47ed0b6464
static foreach(i;0..100){
enum next_i = i+1;
static if(i){
static... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...static if.) However, you can still add { } to make a scope:
```
{ static foreach(...) { } }
```
Or:
```
static... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...string slowBuilder;
static foreach (i, Thing; Things)
{{
enum hasSerialiser = __traits(compiles, serialiserFor!Thing);
static if... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...17:47 UTC, Max Samukha wrote: The static import is a leftover from a previous... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...still cannot express "local to static foreach".
template serialiseOf(T)
{
static if (is(__traits(parent... | |||
4 days ago General » Something like ADL from C++? | |||
|---|---|---|---|
| |||
...Things...)(void[] buffer, Things things)
{
static foreach (thing; things)
{{
static if (isUserType!thing)
{
enum thingMod... | |||
6 days ago Learn » Re: How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...its a void void function (`void foo()()=>static assert(0);` compiles); template wont be correct... | |||
6 days ago Learn » Re: How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...with the magic trick.)
```d
static foreach(T; vectorElementTypes)
static foreach(N; vectorElementCounts)
{
/+voodoo magic... | |||
6 days ago Issues » [Issue 22696] getSymbolsByUDA can't be used in static foreach over parent type | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22696 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
6 days ago Issues » [Issue 21943] `static import std; ` should allow accessing all public Phobos symbols by their FQN | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=21943 --- Comment #1 from dlangBugzillaToGithub <robert.schadek... | |||
Copyright © 1999-2021 by the D Language Foundation