February 15, 2020 Learn » Re: How to get to body of HTTP 500 error with std.net.curl.get()? | |||
|---|---|---|---|
| |||
...res.code == 500); writeln(res.responseBody); // Buffer!ubyte; use .to!string to get a string... | |||
February 11, 2020 Issues » [Issue 20576] TemplateTypeParameter default values are not checked | |||
|---|---|---|---|
| |||
...b2.temp@gmx.com> ---
TemplateValueParameter too:
---
void foo(ubyte u = 0xFF1)()
{
}
void main()
{
foo!1();
}
---
-- | |||
February 07, 2020 Issues » [Issue 20564] Member function increases struct size when the struct is defined in a function | |||
|---|---|---|---|
| |||
...fun()
{
static struct InnerFun
{
ubyte a;
void fun() {}
}
static struct InnerNoFun
{
ubyte a;
}
}
both have... | |||
February 07, 2020 General » Re: Member function increases size of a struct defined in a function - is this a bug? | |||
|---|---|---|---|
| |||
...work around by marking InnerFun 'static':
void fun()
{
static struct InnerFun
{
ubyte a;
void fun() {}
}
...
} | |||
February 07, 2020 General » Member function increases size of a struct defined in a function - is this a bug? | |||
|---|---|---|---|
| |||
...void fun()
{
struct InnerFun
{
ubyte a;
void fun() {}
}
struct InnerNoFun
{
ubyte a;
}
pragma(msg, "InnerFun... | |||
February 07, 2020 Issues » [Issue 20564] New: Member function increases struct size when the struct is defined in a function | |||
|---|---|---|---|
| |||
...void fun()
{
struct InnerFun
{
ubyte a;
void fun() {}
}
struct InnerNoFun
{
ubyte a;
}
// prints 16, expected... | |||
January 31, 2020 General » strange with alias this and import | |||
|---|---|---|---|
| |||
...new ubyte[width * 3];
readln;
for (uint i = 0; i < height; i++)
{
file.rawRead!ubyte... | |||
January 29, 2020 Issues » [Issue 20544] New: socket.remoteAddress throws out of memory error with unix domain socket peer | |||
|---|---|---|---|
| |||
...SocketType.STREAM);
socket.connect(new UnixAddress("\0test"));
ubyte[128] buffer;
socket.receive(buffer[]);
socket.close... | |||
January 27, 2020 Learn » Re: iopipe: Writing output to std.io File | |||
|---|---|---|---|
| |||
...used encodeText to convert the data to ubyte. Note that for char buffer, this basically... | |||
January 27, 2020 Learn » Re: iopipe: Writing output to std.io File | |||
|---|---|---|---|
| |||
...my buffer is `char` but File writes `ubyte`
```dlang
/+ dub.sdl:
name "iobuftofile"
dependency "iopipe... | |||
Copyright © 1999-2021 by the D Language Foundation