Search

4 days ago
General »
...6c2f4b9c41cef5895efd3c1161920a47ed0b6464

static foreach(i;0..100){
    enum next_i = i+1;
    static if(i){
        static...
4 days ago
General »
...static if.) However, you can still add { } to make a scope:

```
{ static foreach(...) { } }
```
Or:
```
static...
4 days ago
General »
...string slowBuilder;

    static foreach (i, Thing; Things)
    {{
        enum hasSerialiser = __traits(compiles, serialiserFor!Thing);
        static if...
4 days ago
General »
...17:47 UTC, Max Samukha wrote:



The static import is a leftover from a previous...
4 days ago
General »
...still cannot express "local to static foreach".
template serialiseOf(T)
{
    static if (is(__traits(parent...
4 days ago
General »
...Things...)(void[] buffer, Things things)
{
  static foreach (thing; things)
  {{
    static if (isUserType!thing)
    {
      enum thingMod...
6 days ago
Learn »
...its a void void function (`void foo()()=>static assert(0);` compiles); template wont be correct...
6 days ago
Learn »
...with the magic trick.)

```d
static foreach(T; vectorElementTypes)
static foreach(N; vectorElementCounts)
{
	/+voodoo magic...
6 days ago
Issues »
https://issues.dlang.org/show_bug.cgi?id=22696

--- Comment #1 from dlangBugzillaToGithub <robert.schadek...
6 days ago
Issues »
https://issues.dlang.org/show_bug.cgi?id=21943

--- Comment #1 from dlangBugzillaToGithub <robert.schadek...
1 2 3 4
Next ›   Last »