September 19 Issues » [Issue 24772] Casting class references to void* should be @safe | |||
|---|---|---|---|
| |||
...e.
```d
import std.stdio;
void main() {
writeln(cast(size_t)cast(void*)new Object);
}
```
-- | |||
September 13 DIP Ideas » Re: Sum Type by Struct | |||
|---|---|---|---|
| |||
...func() @throws(:FailToDecodeUTF); ``` Would actually be: ```d size_t func(); ``` It just so happens, that... | |||
September 13 DIP Ideas » Re: Sum Type by Struct | |||
|---|---|---|---|
| |||
...A a; // size 1 :X x; // size 0 ```...y = x; // error, can't implicitly convert :X... | |||
September 13 DIP Ideas » Re: Sum Type by Struct | |||
|---|---|---|---|
| |||
...the size in assembly. The variable size layout...is kept small, shouldn't be noticeable I... | |||
September 12 DIP Ideas » Re: Enumerated Unions (sum types) | |||
|---|---|---|---|
| |||
...did because the default base type of an enumerated type is `int`, not `size_t`. | |||
September 12 DIP Ideas » Re: Enumerated Unions (sum types) | |||
|---|---|---|---|
| |||
...property, and the intent is that the `size_t` it returns can be computed at... | |||
September 12 DIP Ideas » Re: Enumerated Unions (sum types) | |||
|---|---|---|---|
| |||
...to know is the size and the alignment. It doesn't have to know how... | |||
September 12 DIP Ideas » Re: Enumerated Unions (sum types) | |||
|---|---|---|---|
| |||
Well, `size_t` takes more space. Then again, if the tag property would be a... | |||
September 12 DIP Ideas » Re: Enumerated Unions (sum types) | |||
|---|---|---|---|
| |||
...between what you describe and just using size_t? I agree. Ideally, you would use... | |||
September 09 Learn » Problem with assertThrown | |||
|---|---|---|---|
| |||
...if present
encoded = encoded.stripRight("=");
ubyte[] result;
size_t bitBuffer = 0;
int bitBufferLen = 0;
foreach... | |||
Copyright © 1999-2021 by the D Language Foundation