July 26, 2022 Learn » Re: "string" data type with readln | |||
|---|---|---|---|
| |||
...The definition of string is[2]: ```d alias string = immutable(char)[]; ``` Note the immutable there... | |||
July 25, 2022 General » Re: The problem with Nullable: nullable(null).isNull is false. | |||
|---|---|---|---|
| |||
...an alias could be added then to differentiate it – something like ```d alias SmartNullable... | |||
July 23, 2022 General » Re: pragma(mangle_prefix, "myclib_") | |||
|---|---|---|---|
| |||
...a symbol, like this:
```D
template MangleCallback(alias Symbol)
{
enum MangleCallback = "myclib_" ~ __traits(identifier, Symbol... | |||
July 23, 2022 General » Re: version(number) is completely useless | |||
|---|---|---|---|
| |||
...if(defined(_WIN32_WCE))
alias fdopen = (fd,mode) {}; /* No fdopen() */
else
alias fdopen = _fdopen;
}
```
(I... | |||
July 22, 2022 Learn » Re: Expanding CTFE code during compilation | |||
|---|---|---|---|
| |||
...everything we already did
} else {
enum printEnum(alias x) = x;
}
}
```
But I like yours better. | |||
July 22, 2022 General » std.v2 builder pattern replacement | |||
|---|---|---|---|
| |||
...struct point{
int x,y,xv,yv;
}
alias atZero=withMe!(q{return x==0 && y... | |||
July 22, 2022 Learn » Re: mixin template bug with opBinary? | |||
|---|---|---|---|
| |||
...typeof(this):
```
module foo;
mixin template opBi(
alias f0
) {
static foreach (k, f; f0) { typeof... | |||
July 22, 2022 General » Re: need solution for find error : Error: `TypeInfo` cannot be used with -betterC | |||
|---|---|---|---|
| |||
...bitmanip : bitfields;
enum UserRole : ubyte {
None = 0,
}
alias UserIdT = ushort;
enum BIT_COUNT = 30;
enum... | |||
July 21, 2022 Genel » D ile İlgili Sevdiğimiz ve Sevmediklerimiz | |||
|---|---|---|---|
| |||
...zorundasınız. - @uda'lar tek tük. @nogc yerine alias nogc = makeUDA!(@nonew, @noheap // ...) falan diyebilirdik. ----- Kısa... | |||
July 20, 2022 Learn » Re: Working with arrays (flatten, transpose, verfify rectangular) | |||
|---|---|---|---|
| |||
...A)
{
alias E = ElementType!A;
static if (isArray!E)
{
alias FlatElementType = FlatElementType!E;
}
else
{
alias... | |||
Copyright © 1999-2021 by the D Language Foundation