On Thursday, 15 February 2018 at 20:43:32 UTC, Johan Engelen
wrote:
On Wednesday, 14 February 2018 at 12:22:09 UTC, Vino wrote:
Hi All,
Request your help on how to get the disk space used and free
size of a Network share folder in Windows, tried with getSize
but it return 0;
See:
Does anyone know if there's a way to append to a ddoc macro instead of
replacing it?
For instance, dlang.org has the EXTRA_HEADERS macro for adding extra stuff
to the header of a web page, and it uses that with several pages defining
EXTRA_HEADERS to add headers to that specific page. I have
On 2/16/18 5:39 PM, Ali Çehreli wrote:
On 02/15/2018 01:57 PM, Steven Schveighoffer wrote:
> Really, i should be size_t in all places
size_t or ulong? size_t would constrain 32-bit systems unless they can't
handle files over 2G.
The code I linked to writes to an array. So it's constrained
On 02/15/2018 01:57 PM, Steven Schveighoffer wrote:
> Really, i should be size_t in all places
size_t or ulong? size_t would constrain 32-bit systems unless they can't
handle files over 2G.
Ali
On Thursday, 15 February 2018 at 21:57:23 UTC, Steven
Schveighoffer wrote:
Really, i should be size_t in all places, I can't see why it
should ever be int.
Please file an issue.
-Steve
Issue created: https://issues.dlang.org/show_bug.cgi?id=18452
Thanks for the analysis.
Kind regards
André
On 02/16/2018 09:58 AM, Nordlöw wrote:
void g() pure
{
static assert(!__traits(compiles, { auto x = f(42); }));
alias pureF = assumePure!(typeof());
// TODO: how do I call pureF?
// auto x = (*pureF)(42);
// auto x = pureF(42);
}
auto pureF = assumePure();
I'm struggling with my definition of assumePure that should make
a non-pure function `f` callable as pure `pureF`.
I've copied the definition of assumePure from the Phobos docs at
https://dlang.org/phobos/std_traits.html#SetFunctionAttributes
and managed to define pureF using it but I cannot
On Friday, 16 February 2018 at 13:35:03 UTC, Basile B. wrote:
Technically iy's a multi dimensional slicing but there's a
constraint on the number of dimension allowed so that it looks
exactly like a normal opSlice.
By the way, i reduced too much. This shows more how it works:
struct Foo
{
On Friday, 16 February 2018 at 13:57:07 UTC, Steven Schveighoffer
wrote:
You have a pretty good minimal test, put that in bugzilla along
with the forum thread link and all the info we know. Mark it as
a dmd bug, regression, along with the version where it
regressed (2.076.1), and I would tag
On 2/16/18 8:51 AM, arturg wrote:
On Friday, 16 February 2018 at 13:28:59 UTC, Steven Schveighoffer wrote:
Strictly speaking, this is not necessarily proof that it's in phobos,
there could have been changes elsewhere that cause one of the
conditions to fail.
However, testing this out, I
On Friday, 16 February 2018 at 13:28:59 UTC, Steven Schveighoffer
wrote:
Strictly speaking, this is not necessarily proof that it's in
phobos, there could have been changes elsewhere that cause one
of the conditions to fail.
However, testing this out, I found something very weird.
If you
On Friday, 16 February 2018 at 13:23:09 UTC, Basile B. wrote:
On Thursday, 15 February 2018 at 22:49:56 UTC, Alex wrote:
Hi all,
a short question about an old bug:
https://issues.dlang.org/show_bug.cgi?id=11877
Are there reasons, which speaks against this feature?
And maybe another one, more
On 2/16/18 8:16 AM, bauss wrote:
On Friday, 16 February 2018 at 13:08:09 UTC, bauss wrote:
On Friday, 16 February 2018 at 12:15:07 UTC, arturg wrote:
On Friday, 16 February 2018 at 11:45:21 UTC, arturg wrote:
this code fails to compile:
void delegate(void*) dg;
void delegate(void*)[]
On Thursday, 15 February 2018 at 22:49:56 UTC, Alex wrote:
Hi all,
a short question about an old bug:
https://issues.dlang.org/show_bug.cgi?id=11877
Are there reasons, which speaks against this feature?
And maybe another one, more general:
Is there any place, where it is documented, which
On Friday, 16 February 2018 at 13:08:09 UTC, bauss wrote:
On Friday, 16 February 2018 at 12:15:07 UTC, arturg wrote:
On Friday, 16 February 2018 at 11:45:21 UTC, arturg wrote:
this code fails to compile:
void delegate(void*) dg;
void delegate(void*)[] dgs = [dg, dg, dg];
On Friday, 16 February 2018 at 12:15:07 UTC, arturg wrote:
On Friday, 16 February 2018 at 11:45:21 UTC, arturg wrote:
this code fails to compile:
void delegate(void*) dg;
void delegate(void*)[] dgs = [dg, dg, dg];
dgs.writeln;
dgs.remove(1).writeln();
if you comment out
On Friday, 16 February 2018 at 11:45:21 UTC, arturg wrote:
this code fails to compile:
void delegate(void*) dg;
void delegate(void*)[] dgs = [dg, dg, dg];
dgs.writeln;
dgs.remove(1).writeln();
if you comment out dgs.writeln; it works as expected,
it works if you use other types
this code fails to compile:
void delegate(void*) dg;
void delegate(void*)[] dgs = [dg, dg, dg];
dgs.writeln;
dgs.remove(1).writeln();
if you comment out dgs.writeln; it works as expected,
it works if you use other types then void*:
void delegate(int*) dg;
void
On Thursday, 15 February 2018 at 15:49:47 UTC, RazvanN wrote:
On Thursday, 15 February 2018 at 13:51:41 UTC, drug wrote:
15.02.2018 16:50, drug пишет:
https://run.dlang.io/is/zHT2XZ
I can check againts if member is either static function or
template. But I failed to check if it both static
On Friday, 16 February 2018 at 09:26:47 UTC, Piotr Mitana wrote:
Hello,
The code below:
import std.traits;
enum Attr;
class MyClass
{
private @Attr int a;
static assert(getSymbolsByUDA!(typeof(this),
MyClass).length == 1);
}
does not compile as
On Friday, 16 February 2018 at 09:26:47 UTC, Piotr Mitana wrote:
Hello,
The code below:
import std.traits;
enum Attr;
class MyClass
{
private @Attr int a;
static assert(getSymbolsByUDA!(typeof(this),
MyClass).length == 1);
}
does not compile as
Hello,
The code below:
import std.traits;
enum Attr;
class MyClass
{
private @Attr int a;
static assert(getSymbolsByUDA!(typeof(this), MyClass).length
== 1);
}
does not compile as static assertion fails. Making the filed a
public makes it compile
22 matches
Mail list logo