September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...if(is(typeof(arg) == InterpolatedLiteral!str, string str))
write(str);
else
write(" = ", arg);
}
writeln();
}
```
Used... | |||
September 01 Issues » [Issue 24736] New: core.atomic is not work with struct that has template parameter list and function pointer (-preview=all) | |||
|---|---|---|---|
| |||
...fn(2, "str"); // Runtime error when VARS_AFTER_FP is false.
a.fn("str", 3... | |||
August 28 Issues » [Issue 24727] New: importc: macro conflicts with struct of same name | |||
|---|---|---|---|
| |||
...struct mg_str {
};
void mg_str_s() {
}
#define mg_str(s) mg_str_s(s... | |||
August 27 Genel » Re: Onaltılık Dönüştürme (sadece 9, 7 ve sıfır ile) | |||
|---|---|---|---|
| |||
...equal;
auto str = "Merhaba\n\tDünya!";
assert(str.toHex.equal("4d6572686162610a0944c3bc6e796121"));
assert(str.toHex(true... | |||
August 26 General » Re: DIP1000 observation | |||
|---|---|---|---|
| |||
...manually here
{
char[32] str;
f(str[]);
}
```
The scopeness of `str[]` ends then and there... | |||
August 22 Genel » Re: ConsArray | |||
|---|---|---|---|
| |||
...strings str;
foreach(s; [ "Kaan", "Salih","Cengiz",
"Mahmut", "ALİ", "ALİ", "Salih"]) {
str ~= s.dup;
}
str... | |||
August 20 General » Re: Language Reference | |||
|---|---|---|---|
| |||
...is copied:
```d
void reduceLength(dchar[] str){
str = str[0..$-1];
}
```
This does nothing, because... | |||
August 19 Learn » How do you implement complementary "A*(A*A) = A^3" operator overloads (I'm getting strange results) | |||
|---|---|---|---|
| |||
...toString() {
auto str = to!string(cast(void*) this);
if (isAtomic)
return str;
return "(" ~ str ~ ")";
}
@property... | |||
August 13 General » Re: Can we enable -preview=rvaluereference now? | |||
|---|---|---|---|
| |||
...void` (misrecognised untyped lambdas e.g. `str => dst.put(str)` which should be a delegate... | |||
August 08 Learn » inportC with postgres 16_4 on macOS error | |||
|---|---|---|---|
| |||
...usr/include/stdio.h(337): Error: found `__str` when expecting `,` /Applications/Xcode.app/Contents/Developer... | |||
Copyright © 1999-2021 by the D Language Foundation