April 17, 2020 Learn » Re: Checked!({short, ushort, byte, ubyte}, Throw): compilation fails | |||
|---|---|---|---|
| |||
On Friday, 17 April 2020 at 12:59:20 UTC, Simen Kjærås wrote: [Deleted text... | |||
April 17, 2020 Learn » Re: Checked!({short, ushort, byte, ubyte}, Throw): compilation fails | |||
|---|---|---|---|
| |||
The problem is, short/short gives an int answer:
unittest {
import std.experimental.checkedint;
Checked... | |||
April 17, 2020 Learn » Re: Checked!({short, ushort, byte, ubyte}, Throw): compilation fails | |||
|---|---|---|---|
| |||
...for `~cast(ubyte)0u`, use '-preview=intpromote' switch or `~cast(int)(cast(ubyte)0u)` x... | |||
April 12, 2020 Announce » Re: A D port of utf8proc | |||
|---|---|---|---|
| |||
...readme this expression is wrong: `(mstring.sizeof / ubyte.sizeof) * mstring.length` should be `mstring.length... | |||
April 09, 2020 Learn » Re: To get memory from another process. | |||
|---|---|---|---|
| |||
...a process yet");
size_t bytesWritten = 0;
ubyte[T.sizeof] buffer;
auto b = buffer[];
b... | |||
April 09, 2020 General » Re: Is it time for D 3.0? | |||
|---|---|---|---|
| |||
byte is actually signed. There's ubyte. :) | |||
April 08, 2020 General » Re: Discussion Thread: DIP 1028--Make @safe the Default--Final Review | |||
|---|---|---|---|
| |||
...see: @trusted extern(C) void copy(ubyte[] dest, ubyte[] src) Then you are going to... | |||
April 08, 2020 General » Uncalled functions in hello world | |||
|---|---|---|---|
| |||
...352) std.functional.safeOp!"<".safeOp!(ulong, immutable(ubyte)).safeOp|/usr/include/dmd/phobos/std/functional... | |||
April 08, 2020 Issues » [Issue 20725] New: Taking address of potentially null struct member isn't safe | |||
|---|---|---|---|
| |||
...struct Bar
{
ubyte[0x7FFF_FFE] memory1 = void;
ubyte[0x7FFF_FFE] memory2 = void;
ubyte[0x7FFF_FFE... | |||
April 05, 2020 Announce » Re: dlang-requests 1.1.0 released | |||
|---|---|---|---|
| |||
...buffer (which is essentally array of immutable(ubyte)[]). Then every operation on buffer (trim, split... | |||
Copyright © 1999-2021 by the D Language Foundation