January 26, 2020 General » Re: Integer promotion issue | |||
|---|---|---|---|
| |||
...more strictness ubyte a; ubyte b; ubyte c = a + b; // allowed ushort d; ubyte c... | |||
January 25, 2020 General » Re: Integer promotion issue | |||
|---|---|---|---|
| |||
...T == ubyte)) && (op == "+" || op == "-" /* || op == ... */))
{
return mixin("U8(cast(ubyte)(_val " ~ op ~ " cast(ubyte)other... | |||
January 25, 2020 General » Re: Integer promotion issue | |||
|---|---|---|---|
| |||
...t);
}
// Test binary ops
@safe unittest
{
ubyte x = 1;
ubyte y = 2;
auto z = x... | |||
January 25, 2020 General » Integer promotion issue | |||
|---|---|---|---|
| |||
...090.0
void main()
{
ubyte a = 0x01;
ubyte b = 0x01;
ubyte c = a + b; //Error... | |||
January 10, 2020 Issues » [Issue 20497] New: thread with limited stackspace crashes depending on size of TLS | |||
|---|---|---|---|
| |||
...thread;
import core.stdc.stdio;
ubyte[9000] data;
void task()
{
ubyte[1024] useStack;
printf("%p... | |||
January 09, 2020 General » Re: nothrow by default | |||
|---|---|---|---|
| |||
...example you could do this:
module filesystem;
ubyte FileSystemErrorClass;
enum FileSystemError
{
doesNotExist,
PermissionDenied
}
return Error... | |||
January 06, 2020 Learn » Re: @safe std.file.read | |||
|---|---|---|---|
| |||
...serialized), whereas reading should give you ubyte[] or const(ubyte)[], because what you're getting... | |||
January 06, 2020 Learn » Re: @safe std.file.read | |||
|---|---|---|---|
| |||
...because you can implicitly cast anything to void[], including pointer arrays. Possibly const(ubyte[]). -Steve | |||
January 06, 2020 Learn » Re: @safe std.file.read | |||
|---|---|---|---|
| |||
...before. But I think it should be ubyte[]. Not sure why it's void[]. Perhaps... | |||
January 06, 2020 Learn » Re: @safe std.file.read | |||
|---|---|---|---|
| |||
I definitely think it should return ubyte[]. void[] is a very special abstraction that shouldn... | |||
Copyright © 1999-2021 by the D Language Foundation