Search

September 09
Learn »
...if(is(typeof(arg) == InterpolatedLiteral!str, string str))
                        write(str);
                else
                        write(" = ", arg);
        }
        writeln();
}
```


Used...
September 01
Issues »
...fn(2, "str"); // Runtime error when VARS_AFTER_FP is false.
        a.fn("str", 3...
August 28
Issues »
...struct mg_str {

};

void mg_str_s() {

}

#define mg_str(s) mg_str_s(s...
August 27
Genel »
...equal;
  auto str = "Merhaba\n\tDünya!";
  assert(str.toHex.equal("4d6572686162610a0944c3bc6e796121"));
  assert(str.toHex(true...
August 26
General »
...manually here
{
    char[32] str;
    f(str[]);
}
```

The scopeness of `str[]` ends then and there...
August 22
Genel »
...strings str;
  foreach(s; [ "Kaan", "Salih","Cengiz",
               "Mahmut", "ALİ", "ALİ", "Salih"]) {
    str ~= s.dup;
  }
  str...
August 20
General »
...is copied:
```d
void reduceLength(dchar[] str){
    str = str[0..$-1];
}
```
This does nothing, because...
August 19
Learn »
...toString() {
      auto str = to!string(cast(void*) this);
      if (isAtomic)
         return str;
      return "(" ~ str ~ ")";
   }

   @property...
August 13
General »
...void` (misrecognised untyped lambdas e.g. `str => dst.put(str)` which should be a delegate...
August 08
Learn »
...usr/include/stdio.h(337): Error: found `__str` when expecting `,`
/Applications/Xcode.app/Contents/Developer...
1 2 3 4
Next ›   Last »