July 09, 2020 Learn » Re: Working with pointers/adresses | |||
|---|---|---|---|
| |||
...n", i);
ulong address = cast(ulong)&i;
ubyte* p = cast(ubyte*)address;
writeln(*p);
}
Matheus. | |||
July 08, 2020 Learn » Re: Working with pointers/adresses | |||
|---|---|---|---|
| |||
...d\n", i); // read a number
ubyte* p = cast(ubyte*) i; // convert it to a... | |||
July 07, 2020 Learn » Re: Template function specialization doesn't work | |||
|---|---|---|---|
| |||
...Pattern match `ref T[]` to `ubyte[]` => T is ubyte => Check ubyte for T : T[], no... | |||
July 07, 2020 Learn » Template function specialization doesn't work | |||
|---|---|---|---|
| |||
...slice or not. So ubyte[3] ar = [ 1, 2, 3 ]; ubyte[] arSlice = ar; overloadedFunction(arSlice... | |||
July 05, 2020 Issues » [Issue 21012] New: [REG2.062] Array equality fails with aggregates and > 3 levels of indirection | |||
|---|---|---|---|
| |||
...pro.mathias.lang@gmail.com
```
struct Transaction
{
ubyte[] hash;
}
struct Block
{
Transaction[] txs;
}
void main... | |||
July 01, 2020 Issues » [Issue 21004] New: dmd segmentation fault with 'void' struct member array initializer | |||
|---|---|---|---|
| |||
...segfaults dmd 2.092.0:
struct S {
ubyte[1024 * 1024] a = void;
}
void main() {
version... | |||
June 29, 2020 Learn » Re: Linking D with C structs | |||
|---|---|---|---|
| |||
...need for that symbol. chars in D are initialized with 0xFF, unlike byte and ubyte. | |||
June 28, 2020 Genel » sınıflar | |||
|---|---|---|---|
| |||
...basit bir sınıf oldu:
```
class BellekDeposu : Depo {
ubyte[] baytlar;
long konum; // <-- Dosyanın neresinde olduğumuzu belirler... | |||
June 28, 2020 Announce » Re: iopipe v0.2.0 - safe update | |||
|---|---|---|---|
| |||
...assume it's text (char[] instead of ubyte[]) .byLineRange) // convert to a line-based range... | |||
June 26, 2020 Issues » [Issue 19399] Different Conversion Rules for Same Value and Type -- Enum | |||
|---|---|---|---|
| |||
...to both fun(ubyte) and fun(ulong), then partial ordering picks fun(ubyte). Correct, because... | |||
Copyright © 1999-2021 by the D Language Foundation