Re: Answers needed from those using D for Web Development, Web APIs and Services

2017-12-18 Thread crimaniak via Digitalmars-d

On Friday, 15 December 2017 at 08:13:25 UTC, aberba wrote:
I'm going to do a writeup on the state of D in Web Development, 
APIs and Services for 2017. I need the perspective of the 
community too along with my personal experience. Please help 
out. More details the better.
I think some questions already answered in this survey 
https://forum.dlang.org/thread/hrtakvaqrhvayeidq...@forum.dlang.org


I wonder, it is possible to filter Google Forms result to see 
only results with relevant items in 'primary and secondary area 
of development' questions?


Re: A list of all the awesome people who made D possible

2017-12-18 Thread Seb via Digitalmars-d-announce

On Monday, 18 December 2017 at 21:34:25 UTC, Basile B. wrote:

On Monday, 18 December 2017 at 15:58:59 UTC, Seb wrote:

[...]


There are a few dups:

- "Adam D. Ruppe" and "adamdruppe"
- "UplinkCoder" and "Stefan Koch"
- "Hackerpilot" and "Brian Schott"
- "Iain Buclaw" and "ibuclaw"
- "Timothee Cour" and "timotheecour"
- "Abscissa" and "Nick Sabalausky"

Probably a few others that are less obvious, but that's only 
1.05% anyway.


Thanks -> added them to the .mailmap:

https://github.com/dlang/tools/pull/279


[Issue 17998] Document Options for install.sh

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17998

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 17998] Document Options for install.sh

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17998

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/cddf449f644fcd2e2c0321491dd8d978f94199ae
Fix Issue 17998 - Document Options for install.sh

https://github.com/dlang/dlang.org/commit/04bf20ef391ebcfd17af4e5db6c58664748f0569
Merge pull request #1936 from wilzbach/fix-17998

Fix Issue 17998 - Document Options for install.sh
merged-on-behalf-of: Sebastian Wilzbach 

--


Re: Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread Mike Franklin via Digitalmars-d-learn

On Tuesday, 19 December 2017 at 02:04:34 UTC, codephantom wrote:


 writeln(S.j);
 // Error: Instance symbols cannot be used through types.


I don't understand why you would say that is a bug.



I meant that the example is wrong, and a bug report should be 
filed to fix the example.


Mike


Re: Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread codephantom via Digitalmars-d-learn

On Tuesday, 19 December 2017 at 01:30:07 UTC, Mike Franklin wrote:


 writeln(S.j);
 // Error: Instance symbols cannot be used through types.


I don't understand why you would say that is a bug.

i.e.
// 
import std.stdio;

struct S
{
int j;
}

void main()
{
writeln(typeof(S.j).stringof);
   // prints: int
}
// -

"AliasDeclarations create a symbol that is an alias for another 
type, and can be used anywhere that other type may appear. ".


Since typeof S.j is an int, that seems consistent with this 
requirement, that alias is an alias for another type.




Re: Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread Mike Franklin via Digitalmars-d-learn

On Monday, 18 December 2017 at 23:44:46 UTC, Michael wrote:

I have been looking at the following example found right at the 
end of the section here: 
https://dlang.org/spec/declaration.html#alias


struct S { static int i; }
S s;

alias a = s.i; // illegal, s.i is an expression
alias b = S.i; // ok
b = 4; // sets S.i to 4

and it runs fine to me, including if I add:


I think the example is wrong.  Consider this:


import std.stdio;

struct S
{
static int i;
int j;
}
S s;

void main()
{
s.i = 1;
s.j = 2;

writeln(s.i);  // OK: Static symbols can be used through 
instances

writeln(S.i);  // OK: Static symbols can be used through types
writeln(s.j);  // OK: Instance symbols can be used through 
instances
//writeln(S.j);  // Error: Instance symbols cannot be used 
through types.

}


https://run.dlang.io/is/eppwuf

Please file a bug report at http://issues.dlang.org/

Mike



Re: Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread Meta via Digitalmars-d-learn

On Monday, 18 December 2017 at 23:44:46 UTC, Michael wrote:

Hello,

I have been looking at the following example found right at the 
end of the section here: 
https://dlang.org/spec/declaration.html#alias


struct S { static int i; }
S s;

alias a = s.i; // illegal, s.i is an expression
alias b = S.i; // ok
b = 4; // sets S.i to 4

and it runs fine to me, including if I add:

a = 3;

So, to me I don't see why either can't be valid, but either way 
something needs to be fixed to reflect that this is no longer 
illegal in DMD v2.077.1.


I think the reason that this works is because i is static, 
meaning that you don't need the `this` reference of S to access 
it and thus it can be aliased. Declaring a static class or struct 
variable is pretty much the same as declaring a global variable, 
just with a tighter scope. If you look at it that way, then this 
makes a lot more sense. If you declare a global variable i at 
module scope, of course you can create an alias for it.


Re: Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread codephantom via Digitalmars-d-learn

On Monday, 18 December 2017 at 23:44:46 UTC, Michael wrote:


alias a = s.i; // illegal, s.i is an expression


Actually, as I understand it, the example provided in 10. is 
legal (because it aliases a type), and the example provided in 3. 
is illegal (because it aliases an expression)


perhaps the examples in 10 and 3 should be swapped.

https://dlang.org/spec/declaration.html#alias



Re: Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread codephantom via Digitalmars-d-learn

On Monday, 18 December 2017 at 23:44:46 UTC, Michael wrote:


alias a = s.i; // illegal, s.i is an expression



alias a = s.i; (this is an alias to a type, since s.i is an int)

Hence it is actually 'legal', as far as I understand.

i.e... "AliasDeclarations create a symbol that is an alias for 
another type, and can be used anywhere that other type may 
appear. "


What is 'illegal', is an alias to an expression.. for example:

alias strlen = string.sizeof;



Some thoughts about C and D, return data through parameters

2017-12-18 Thread cosinus via Digitalmars-d
Recently I've asked my self why `C` isn't capable of returning 
multiple values at once. And I thought that the return-statement 
was primarally used only for error-handling and all the valuable 
data has been returned through the parameter-list.
If this was true then all `C`-like languages had abused the 
return-statement till  now.


This is the way most programmers are doing it:

```C
int add(int a, int b);
// ...
int c = add(a, b);
```

This is the way I think `C` was designed to:

```C
int add(int *c, int a, int b);
// ...
int c;
if(add(, a, b)) {
printf("error!");
}
```

This isn't good example but think about how you are doing it with 
huge structs or even arrays.


I think the main reason why most people are using the first 
example is because it looks more like a function in math or you 
need less code to call the function or we think the 
parameter-list is for inputs only.
But the second one is faster especially with huge junks of data. 
I think a lot of unnecessary allocations has been done just to be 
able to call the function like the first example. Think about 
`std::string` in c++.


So my question is would it be a good idea to have some kind of 
implicit declarations of variables that are used as parameters:


```D
int add(decl ref int c, int a, int b);

// ...

// c is unknown here

if(add(c, 123, 456)) {
writeln("error!");
}
// c is implicit declared at the function-call above.
assert(c == 579);
```

The good things out of this are:

* The function becomes easier to be called
* The variable `c` does not need to be default-initialized to 
keep it save
* It's like the `auto`-declaration we can already use to declare 
a variable that keeps the return-value

* It solves the problem with multiple return-values.

A second thought that came up was:
Shouldn't there be a compiler-error if someone is ignoring the 
return-value of a function?


I saw this C-code:

```C
(void)printf("Hello World!");
```

It cast's the return-value to void to tell the compiler and other 
programmer's that the return-value can be ignored.


Re: How do I pass a type as parameter in this method?

2017-12-18 Thread Ali Çehreli via Digitalmars-d-learn

On 12/18/2017 03:54 PM, Ali Çehreli wrote:

On 12/18/2017 02:58 PM, Marc wrote:


Here's another experiment:

template FirstOf(T...) {
template otherwise(D) {
static if (T.length == 0) {
enum otherwise = D.init;
} else {
enum otherwise = T[0];
}
}
}

void main() {
static assert (FirstOf!(1.5, "hello").otherwise!int == 1.5);
static assert (FirstOf!("world", [1]).otherwise!int == "world");
static assert (FirstOf!().otherwise!int == 0);
}

Ali


Re: How do I pass a type as parameter in this method?

2017-12-18 Thread Ali Çehreli via Digitalmars-d-learn

On 12/18/2017 02:58 PM, Marc wrote:

Imaginary code:


int index = FirstOrDefault!(int)(__traits(getAttributes, C.a));


In that case, if the tuple is empty, the value is the int's type default 
value.


The method is defined as  following:


template FirstOrDefault(X)(T...) {
static if(T.length > 0) {
    enum FirstOrDefault = T[0];
} else {
    enum FirstOrDefault = X.init;
}
}


template FirstOrDefault(D) {
template FirstOrDefault(T...) {
static if(T.length > 0) {
enum FirstOrDefault = T[0];
} else {
enum FirstOrDefault = D.init;
}
}
}

template FirstOrDefault_2(T...) {
static if(T.length > 1) {
enum FirstOrDefault_2 = T[1];
} else {
enum FirstOrDefault_2 = T[0].init;
}
}

template FirstOrDefault_3(D) {
template of(T...) {
static if(T.length > 0) {
enum of = T[0];
} else {
enum of = D.init;
}
}
}

void main() {
// This one requires an alias because I could not get rid of "Error:
// multiple ! arguments are not allowed".
alias IntDefault = FirstOrDefault!int;
static assert (IntDefault!() == 0);
static assert (IntDefault!([1], "hello") == [1]);
static assert (IntDefault!("world", 1.5) == "world");

// This one puts everything into the same argument list
static assert (FirstOrDefault_2!(double, "yo") == "yo");
import std.math;
static assert (isNaN(FirstOrDefault_2!(double)));

// This one invents .of for an arguably more readable syntax
static assert (FirstOrDefault_3!int.of!(7) == 7);
struct S {
int i = 42;
}
static assert (FirstOrDefault_3!S.of!().i == 42);
}

Ali


Alias example should supposedly be illegal, but runs fine

2017-12-18 Thread Michael via Digitalmars-d-learn

Hello,

I have been looking at the following example found right at the 
end of the section here: 
https://dlang.org/spec/declaration.html#alias


struct S { static int i; }
S s;

alias a = s.i; // illegal, s.i is an expression
alias b = S.i; // ok
b = 4; // sets S.i to 4

and it runs fine to me, including if I add:

a = 3;

So, to me I don't see why either can't be valid, but either way 
something needs to be fixed to reflect that this is no longer 
illegal in DMD v2.077.1.


[Issue 17541] Function attribute deduction depends on compile invocation

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17541

johanenge...@weka.io changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #9 from johanenge...@weka.io ---
reopening, because it is not fixed for safe/trusted, nor for impure/pure,
throw/nothrow.

--


Re: A list of all the awesome people who made D possible

2017-12-18 Thread Iain Buclaw via Digitalmars-d-announce
On 18 December 2017 at 22:34, Basile B. via Digitalmars-d-announce
 wrote:
> On Monday, 18 December 2017 at 15:58:59 UTC, Seb wrote:
>>
>> D wouldn't be this powerful, rocking language as it is today without all
>> its contributors who worked very hard on improving.
>> To start showing our gratitude and as a token of appreciation, we have
>> started listing all the awesome people who made D possible on dlang.org:
>>
>> https://dlang.org/contributors.html
>>
>> The upcoming 2.078.0 release notes will also contain a listing of all the
>> amazing people who made 2.078 a reality:
>>
>> https://dlang.org/changelog/pending.html
>>
>> This information is aggregated over all core D repositories (dmd,
>> druntime, phobos, tools, dlang.org, installer).
>> For the nerds, as of now the information is extracted from 45389 commits.
>> For more details, see:
>>
>> https://github.com/dlang/tools/blob/master/contributors.d
>>
>> (it runs on the CLI too)
>>
>> if (!contributorList.canFind(yourName)) {
>>"Find a bug or improvement idea today and make a PR ;-)".writeln;
>> }
>>
>> Cheers,
>>
>> Seb
>
>
> There are a few dups:
>
> - "Iain Buclaw" and "ibuclaw"

That isn't a dupe (*whistles*).


[Issue 15243] rejects-valid on variadic

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15243

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/8d719d66c86d52923ffba516ef2a78a1c2b71b92
Fix Issue 15243 - rejects-valid on variadic

https://github.com/dlang/dmd/commit/353cc41ce88a43ccd8b7cbed364ea3129e647afb
Merge pull request #7403 from JinShil/fix_15243

--


[Issue 17541] Function attribute deduction depends on compile invocation

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17541

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--


[Issue 18076] dmd -run should work with `-` (stdin) too

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18076

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/91701a41304a4c1eda79ec89420babf0c513bc1d
Fix issue 18076: make -run work with - (stdin)

https://github.com/dlang/dmd/commit/0b8d1fc0d5f6d09478d282202ad50a0c964b75b0
Merge pull request #7435 from quickfur/issue18076

--


[Issue 8262] ICE(mtype.c) alias this to alias of an expression tuple

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8262

--- Comment #10 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/2f27c59732481880545ca65a4641806087cc23e7
fix issue 8262 -  ICE(mtype.c) alias this to alias of an expression tuple

https://github.com/dlang/dmd/commit/4616d4485102fc4650d14d185e224a621c25d965
Merge pull request #4195 from rainers/aliasthisof

--


[Issue 15094] __traits(getMember) fails when the source is a struct/class field

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15094

--- Comment #9 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/89c900316c02d7e845b151e02a460d89631a9d07
Fix Issue 15094 - __traits(getMember) fails when the source is a struct/class
field

https://github.com/dlang/dmd/commit/c9d988ebc0eca6137551eaacb961400acb2e7752
Merge pull request #7341 from JinShil/fix_15094

--


[Issue 17371] [REG 2.074.0] di generation broken for anonymous classes

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17371

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/a16826730fb7987d2012144cf7eaf46c53ae3735
Fix Issue 17371 - [REG 2.074.0] di generation broken for anonymous classes

https://github.com/dlang/dmd/commit/64bbb4084db5cba159ceec9cb88512c5d1b64d02
Merge pull request #7315 from RazvanN7/Issue_17371

--


[Issue 18045] Temporary created during comparison not destroyed

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18045

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/0420fa0cdffc3a846216ab3c31c31571660089cd
fix Issue 18045 - Temporary created during comparison not destroyed

https://github.com/dlang/dmd/commit/68cd273c85dba9946ecd6e4fcfc40461494b284a
Merge pull request #7407 from WalterBright/fix18045

--


[Issue 18014] DMD test suite fails to link on Linux distros where PIC/PIE is enforced

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18014

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/818f27d0b969d08b7e705541e9524ce906fdc709
Fix issue 18014 - dmd test suite fails to link (part 1/2)

https://github.com/dlang/dmd/commit/64424027452125693483b36022827e6c401e2307
Merge pull request #7433 from wilzbach/hardening-part-1

--


[Issue 13089] Spurious 'is not nothrow' error on static array initialization

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13089

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/404c11c8470c90f05d70c202d65b52fe326ed0d7
Add field to give struct used in testing issue 13089 a size.

https://github.com/dlang/dmd/commit/c6829a8d2374dd9398e763ede1f4377482688942
Merge pull request #7417 from ibuclaw/emptyaggr

--


[Issue 17843] -betterC struct with `double` field generates references to TypeInfo

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17843

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/1d2da668320f4c5ff070f65f50ca694bfc31cddb
fix Issue 17843 - -betterC struct with  field generates references to TypeInfo

https://github.com/dlang/dmd/commit/6e00baac3d3bd25a792717bacc194e39bba8fe81
Merge pull request #7151 from WalterBright/fix17843

--


[Issue 18020] [Reg 2.078] no property opCmp for anon class

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18020

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/da7e071e305989e85f9a7128ae0edda628e13148
Fix Issue 18020 - [Reg 2.078] no property opCmp for anon class

https://github.com/dlang/dmd/commit/39981da5cc0b7a3822578c1179bc3ae87957799a
Merge pull request #7378 from JinShil/fix_18020

--


[Issue 15289] VRP not working as expected on division

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15289

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/2f5ba437c6b584bbaf4d15fc451f239bb6122967
Refactor VRP + fix issue 15289

https://github.com/dlang/dmd/commit/ddd07f6af7ea93dcebb7412cdaeed86e20eb2e69
Merge pull request #7355 from somzzz/vrp_quick_math

--


[Issue 9631] Error message not using fully qualified name when appropriate.

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9631

--- Comment #16 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/5c2155907e511cd4212a88ba57642b5336cb6e6f
Issue 9631 - Error message not using fully qualified name

https://github.com/dlang/dmd/commit/d8188cb809d9442d2dd2aec4a9cb500031bb0232
Merge pull request #7405 from ntrel/qualify-symbol

https://github.com/dlang/dmd/commit/cf01f6829411208a57613d6cbd5feae7c3cc3771
Issue 9631 - Error message not using fully qualified name (part 2)

https://github.com/dlang/dmd/commit/6504493c3194754f23e5f9c39dcba72d235779c7
Merge pull request #7441 from ntrel/qual-incompatible

--


[Issue 12625] [scope] [DIP1000] implicit slicing of RValue static array should be illegal

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12625

--- Comment #24 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f0372315ca3d3dc87e67768433d446832348fe47
Issue 12625 - [scope] [DIP1000] implicit slicing of RValue static array should
be illegal

https://github.com/dlang/phobos/commit/a3bbaedcef197c6db91bea4f4ccf7f85c03c8d8c
Merge pull request #5893 from JinShil/fix_12625

--


[Issue 18048] std.bigint.toDecimalString is impure

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18048

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f01efe3618a8d72e08d013c605537835901edae5
Merge pull request #5913 from Biotronic/Issue18048

--


[Issue 12496] __traits(parent, x) returns incorrect type

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12496

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/b74bb167d2bd49d47d01f0f19277b5441ade3afc
Fix Issue 12496: __traits(parent, x) returns incorrect symbol

https://github.com/dlang/dmd/commit/d94a080030193fb0514bc512265e18dfe4d973f0
Merge pull request #7097 from JinShil/fix_12496

--


[Issue 18021] FileLogger Member not accessible to subclasses

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18021

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/21df9ea699cb54d19a96ad31c0b8143d4c58ac18
fix issue 18021

https://github.com/dlang/phobos/commit/54d023ca770cc81ee8743dc59ce3d43004c6a223
Merge pull request #5896 from burner/filelogger_member_access_issue_18021

--


[Issue 18092] Can't combine take and takeExactly

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18092

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/058fdd8ebb5d0fa49664414efb9156bfbf68f2fa
Fix Issue 18092 - Can't combine take and takeExactly

https://github.com/dlang/phobos/commit/072e3211aef6ade35793e8cb45d721d91cdee6ef
Merge pull request #5935 from wilzbach/fix-18092

--


[Issue 16570] [REG 2.072.0-b1] Enum member with interpreted initializer has type of initializer not enum

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16570

--- Comment #7 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/6f3b7e6b306818c65327cd698da1e401685ca025
Modify test for issue 16570 to accomodate fix for issue 12385

--


[Issue 18047] std.format value.length modulo seperator step width leads to wrong length

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18047

--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/aa92422b215c7109bd74bb1cad1226654b7b6f3b
Merge pull request #5911 from burner/issue_17459_issue18047

--


[Issue 12929] Empty union followed by field causes ICE due to offset of 0.

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12929

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/1549c13be9b5d762123257234ec7e6d03cee62a2
Issue 12929 - Empty union followed by field causes ICE due to offset of 0(Tests
Only)

https://github.com/dlang/dmd/commit/01e2335b8253beff9c945b42ae7b5d7b14402d04
Merge pull request #7343 from JinShil/test_12929

--


[Issue 16694] ICE on taking address of `export` function (declaration-only)

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16694

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/3ae9f7207a0f4bb76cb8260fe82969211556dd0a
Fix Issue 16694 - ICE taking address of exported function (declaration-only)

https://github.com/dlang/dmd/commit/e1b8d3713ca10801861c925546df868b095e9934
Merge pull request #7373 from JinShil/fix_16694

--


[Issue 6400] opDispatch with WithStatement

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6400

--- Comment #13 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/4dfa27ecb16639044961ad995a32352111c19edc
Fix issue 6400 - Better interaction between with() and opDispatch (Part 2)

https://github.com/dlang/dmd/commit/c5defc80b321d8573789279c59161aaa3f3e3654
Merge pull request #7356 from JinShil/fix_6400

--


[Issue 17997] autotester's d_do_test has strange failures with Win32

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17997

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/bcae082b71508c1f661e71b8ccc7a0868ec24825
fix Issue 17997 - autotester's d_do_test has strange failures with Win32

https://github.com/dlang/dmd/commit/58f64bddf60972791da7297fb6aa37f3a27d6884
Merge pull request #7350 from WalterBright/win32eh

--


[Issue 17995] template NoDuplicates(TList...) bug.

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17995

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a6e9b151fe63ca1098fa75456f925a7b69135572
Fix issue 17995

https://github.com/dlang/phobos/commit/284e5210edca36ad4d279850dd369c503706dd90
Merge pull request #5867 from Biotronic/issue17995

--


[Issue 17096] many traits accept an invalid parameter count without error

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17096

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/30e01ba7969ede07e0428132dfbdda9d3ddbe80e
Fix issue 17096 - Check the number of arguments given to __trait

https://github.com/dlang/dmd/commit/ad70d70153978bd4da878d73b7eca6d713643c60
Merge pull request #7330 from JinShil/fix_17096

--


[Issue 10310] VRP for bitwise &|^ does not always produce the tightest bounds.

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10310

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/1757224765982088b8454500aeecdd0a08473475
VRP and,or,xor + fix issue 10310

https://github.com/dlang/dmd/commit/6395d48df6cc0f809c4dcb8b2e25b43d34908628
Merge pull request #7317 from somzzz/vrp_andOr

--


[Issue 17935] [scope] auto-generated destructor not scope aware

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17935

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/c9ff5810a2f449f19a39172461d511c895dcb519
fix Issue 17935 - [scope] auto-generated destructor not scope aware

https://github.com/dlang/dmd/commit/0bb4ad1668fa7ea6539c2bf2c7035309afabbdd4
Merge pull request #7283 from WalterBright/fix17935

--


[Issue 16253] BitmappedBlock allocator not working with chooseAtRuntime

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16253

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f730d230f5ee56efea465f8f32b1ecb49e4542cf
Fixed Issue 16253 - BitmappedBlock allocator not working with chooseAtRuntime

https://github.com/dlang/phobos/commit/20413aed16912cabd47a7cc081f1380cfddb7eb7
Merge pull request #5854 from jercaianu/bitmap_chooseAtRuntime

--


[Issue 16685] template instantiation rejected when passing member of enum struct in value parameter

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16685

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/9b380e7b249eeac8d3b6a79ec102564de85de10d
Issue 16685 - template instantiation rejected when passing member of enum
struct in value parameter

https://github.com/dlang/dmd/commit/2e71fdb22c6d1320e08de4e0cd7a1042d0d0abea
Merge pull request #7335 from JinShil/fix_16685

--


[Issue 14034] std.algorithm.mean

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14034

--- Comment #4 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/b5572e8f31f69078691c9d92b8759a5c21f1c341
Fix issue 14034: Add mean to Phobos

--


[Issue 17459] format("%012,3d", ...) doesn't handle field width and zero-padding correctly

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17459

--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/9352627f89348a4479114a5bcdc64cf35c0957bf
Fix for problems with format seperators

--


[Issue 12385] Enum member should not be modifiable when the member is immutable

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12385

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/334f853e8371fdab46875bf3316ba78a7c237578
Fix Issue 12385 - Enum member should not be modifiable when the member is
immutable

https://github.com/dlang/dmd/commit/0da1457a01b9e1e7188383d86cd0ecbd5fc86fec
Merge pull request #7348 from JinShil/fix_12385

--


[Issue 12064] std.typecons.wrap doesn't handle NVI

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12064

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/c9f2158b59a460350e993a2deccad9dbcafc7a51
fix issue 12064 - std.typecons.wrap doesn't handle NVI

https://github.com/dlang/phobos/commit/d1a0a32e7997a15b646bfff81e1514458ae6cf1f
Merge pull request #5858 from BBasile/issue-12064

--


[Issue 17908] Can't alias an overload set with disabled function

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17908

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/0a319dbe2cf87e008e74c370fcbb5e70170f9c2d
Fix Issue 17908 - Can't alias an overload set with disabled function

https://github.com/dlang/dmd/commit/11bf970f0708bed12701a676e3d6a24f4db4f5d9
Merge pull request #7244 from RazvanN7/Issue_17908

--


[Issue 11006] Subtraction of pointers for `void` and non-void types compiles

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11006

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/1cf383600f21394b12e2077ae97c4944f53c5e2b
Fix Issue 11006 - Subtraction of pointers for void and non-void types compiles

https://github.com/dlang/dmd/commit/523301bf58ac8c2ea68269dc7628812d5697c863
Merge pull request #7332 from JinShil/fix_11006

--


[Issue 18044] std.conv.to for implicitly convertible associative arrays

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18044

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/0ca50877374489ee4639afe29cd656abcfc0d5ba
fix Issue 18044 - std.conv.to for implicitly convertible associative arrays

https://github.com/dlang/phobos/commit/9679020d5770c0677116a603b82d7c88cae05913
Merge pull request #5909 from John-Colvin/toImplAssocArray

--


[Issue 16022] [REG2.069] dmd assertion failure due to misplaced comma operator

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16022

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/64980c29006945d9b0a5abbe096edd2c92913584
Issue 16022 - assertion failure due to misplaced comma operator (additional
test)

https://github.com/dlang/dmd/commit/f6c2fbf2925326f47809eda4a999b8722d12d547
Merge pull request #7338 from JinShil/fix_16022

--


[Issue 17585] Wrong error message for deprecated overrides

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17585

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/9e932a7b5e17901f4a6fe246d6e5c3fb373f881e
Fix Issue 17585 - Wrong error message for deprecated overrides

https://github.com/dlang/dmd/commit/3fb188cab300451cbe7c85d8dbd12b82fd334a96
Merge pull request #7312 from RazvanN7/Issue_17585

--


[Issue 17382] void main(){}pragma(msg,main()); crashes DMD

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17382

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/db8c74b6cfccb4ac14d32b3f9d16aaff1e806a0c
Fix Issue 17382 - void main(){}pragma(msg,main()); crashes DMD

https://github.com/dlang/dmd/commit/aebbe30de5bbe34b4d2841f07dbe91548da3d0d9
Merge pull request #7316 from RazvanN7/Issue_17382

--


[Issue 17167] dmd fails to write to file or create directory with more than 248 characters in the path

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17167

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/34f6dedb18fd3d9e6aacac8469f6515da2e77928
Fix issue 17167 - handle long filepaths on Windows

https://github.com/dlang/dmd/commit/24ab619f310eed641a60cad492460a0af4e7f0cf
Merge pull request #7299 from kaleidicassociates/fix_issue_17167

--


[Issue 17947] C++ std::pair::swap mangled incorrectly

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17947

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/e2f87ce487985ab12ca4303f4ef1c50cd02f4e70
Merge pull request #7250 from WalterBright/cpp-mangling

--


[Issue 17127] bad example code for std.concurrency.Generator

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17127

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/d2e716b20ed571ac00e184cdb84a0c158c5136c9
Issue 17127 - bad example code for std.concurrency.Generator

https://github.com/dlang/phobos/commit/5df663ead1203dea2fd7cbaae189bae99c1eafec
Issue 17127 - bad example code for std.concurrency.Generator

https://github.com/dlang/phobos/commit/a7953301bcbbb416cfcf2d35d3c1647e99a82ee9
Merge pull request #5872 from wilzbach/std-concurrency-tests-1

https://github.com/dlang/phobos/commit/4e197f22630329bc44203b72712cb43020fd710e
Merge pull request #5870 from wilzbach/std-concurrency-tests-2

--


How do I pass a type as parameter in this method?

2017-12-18 Thread Marc via Digitalmars-d-learn

Imaginary code:


int index = FirstOrDefault!(int)(__traits(getAttributes, C.a));


In that case, if the tuple is empty, the value is the int's type 
default value.


The method is defined as  following:


template FirstOrDefault(X)(T...) {
static if(T.length > 0) {
enum FirstOrDefault = T[0];
} else {
enum FirstOrDefault = X.init;
}
}


[Issue 15140] std.experimental.allocator.building_blocks.free_list.FreeList leaks memory

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15140

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/b8d70b32fd4e6d7c936809a118b168bc68303dad
Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList
leaks memory

https://github.com/dlang/phobos/commit/0b006c6f8cf97687f999e875559b2153391a1f7d
Merge pull request #5856 from jercaianu/freeList

--


[Issue 17986] Erratic failure with std/experimental/allocator/common.d(445): unittest failure

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17986

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f529c855ae3f2dfd66d1f1f0af9873c1bbc01f0a
Fix Issue 17986 - Erratic failure with
std/experimental/allocator/common.d(445): unittest failure

https://github.com/dlang/phobos/commit/a07e0efb62b0b2aaaceb1374975bde0183b2c4d9
Merge pull request #5863 from jercaianu/allocbug

--


[Issue 10756] "has no effect in expression" error message with correct type name

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10756

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f521dd920bf793e0ca3d370335dcffdcbecad866
Issue 10756 - 'has no effect in expression' error message with correct type
name

https://github.com/dlang/dmd/commit/311c7f8f0d045fa02d5bc2aa9f4edfe4d47152d1
Merge pull request #7300 from JinShil/fix10756

--


[Issue 14477] Nullable does not work with structs with default constructor disabled

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14477

--- Comment #6 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/61d53a1ad4a64cb5d3686c3e755bcb3508ef22f6
fix Issue 14477 - Nullable does not work with structs with default constructor
disabled

--


Re: Dub project has both .sdl and .json files. Is this normal or did I do something wrong?

2017-12-18 Thread WebFreak001 via Digitalmars-d-learn

On Monday, 18 December 2017 at 22:36:44 UTC, WhatMeWorry wrote:


I've been using Dub for a while but from the very beginning I 
decided to go with SDL 100% of the time, So I've got a dub.sdl 
file like:


name "01_10_camera_view_space"
description "A minimal D application."
authors "kheaser"
copyright "Copyright © 2017, kheaser"
license "proprietary"

dependency "derelict-al"  version="~>1.0.3"
dependency "derelict-assimp3" version="~>1.3.0"
dependency "derelict-fi"  version="~>2.0.3"
dependency "derelict-fmod"version="~>2.0.4"
dependency "derelict-ft"  version="~>1.1.3"
dependency "derelict-gl3" version="~>1.0.23"
dependency "derelict-glfw3"   version="~>3.1.3"
dependency "derelict-util"version="~>2.0.6"
dependency "gl3n" version="~>1.3.1"
  .


But when I look the directory that has the dub.sdl file, I also 
see a file called dub.selections.json


{
"fileVersion": 1,
"versions": {
"derelict-al": "1.0.3",
"derelict-assimp3": "1.3.0",
"derelict-fi": "2.0.3",
"derelict-fmod": "2.0.4",
"derelict-ft": "1.1.3",
"derelict-gl3": "1.0.23",
"derelict-glfw3": "3.1.3",
"derelict-util": "2.0.6",
"gl3n": "1.3.1"
}
}


So how did this .json file get created and can I just delete 
it?  I only noticed this because when I was troubleshooting the 
project, I changed the dub.sdl library versions but the 
compile/run was using the library versions in 
dub.selections.json.


I did switch from using DMD to LDC, if that has any bearing.


dub.selections.json is basically broken design, once it's there 
it will ignore any version value you write in dub.json/dub.sdl 
until you dub upgrade. This can lead to many bugs very easily, 
but just remember to dub upgrade every time you change versions 
and it will be fine.


dub.selections.json stores the versions which got picked when 
first adding the dependency so that others can get the same 
version of the dependency and should hopefully get a working 
build if you managed to build it. The two major problems: if your 
new version range doesn't actually allow that version anymore dub 
will still use it anyway until you dub upgrade. Second it doesn't 
even store commit hashes when using ~master. So basically 
assuming the dependency author properly uses SemVer (don't break 
backwards compatibility on minor releases) and your version range 
only accepts minor updates it is literally nonsense to freeze the 
package on a minor version if your range allows a higher version. 
Basically you are missing security patches if you use 
dub.selections.json


To be honest I wouldn't push it to git, it keeps changing, always 
only gives conflicts and breaks things, especially when using 
"path". But the dub devs say it should be pushed, though I have 
never seen anything good come out of it.


[Issue 17934] [scope] scopeness entrypoint for unique/ref-counted missing

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17934

--- Comment #5 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/18ad1685dcdca65070f7a1d89efa4410a5936895
fix Issue 17934 - [scope] scopeness entrypoint for unique/ref-counted missing

--


[Issue 16564] KRRegion.empty sometimes returns Ternary.no

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16564

--- Comment #9 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/02074889d5984093b677a1c081c33fbf877360ec
Fix Issue 16564 - KRRegion.empty sometimes returns Ternary.no

https://github.com/dlang/phobos/commit/1649edd483519a5d60c7b38865e984b46d703cdf
Merge pull request #5862 from jercaianu/krr

--


[Issue 17586] Overriding a deprecated base class function gives no warning

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17586

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/1ae083f9d880cd6a301dc8e1f87d3b32f7993eac
Fix Issue 17586 - Overriding a deprecated base class function gives no warning

https://github.com/dlang/dmd/commit/9c684a3a090c1d1c89042a8885adf52e23f373fa
Merge pull request #7311 from RazvanN7/Issue_17586

--


[Issue 4946] Not good error message with wrongly positioned 'const'

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4946

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f9879d74ea09034e68829551c3b3902c28e08bec
Fix Issue 4946 - Not good error message with wrongly positioned 'const'

https://github.com/dlang/dmd/commit/05fcb67900f5233f77584b6dd21da31d04702e13
Merge pull request #7280 from RazvanN7/Issue_4946

--


[Issue 17962] dirEntries now truncates Unicode file names

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17962

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/fc86ca916e7cff5f98a30fc59a71ebedf1707c61
Fix issue 17962: dirEntries is truncating Unicode file names.

https://github.com/dlang/phobos/commit/8f9813efd86bd3cddb323f511ae71d1ee03d0207
Merge pull request #5838 from jmdavis/direntry_unicode

--


[Issue 17976] core.exception.AssertError@ddmd/dsymbolsem.d(1624)

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17976

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/bfa0da8d413ed283868fcd103ee398e41a29deef
Fix Issue 17976 - core.exception.AssertError@ddmd/dsymbolsem.d

https://github.com/dlang/dmd/commit/03e806abaae49fe84de8fc0bdbe2ead80f58d038
Merge pull request #7297 from RazvanN7/Issue_17976

--


[Issue 18082] Ubuntu/Debian repository installation should mention dub

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18082

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/32c5c4b809e3ec9164d26e1a91b367e9fe8cb4e1
Fix Issue 18082 - Ubuntu/Debian repository installation should mention dub

https://github.com/dlang/dlang.org/commit/c08728dc547a7081db9f787baa33d60b41f32b91
Merge pull request #2000 from wilzbach/fix-18082

--


[Issue 16398] experimental allocators, add aligned reallocation for Posix

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16398

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a196f171f6cc0d6936d7b2d5fc4fc7e38b026514
fix issue 16398 - experimental allocators, add aligned reallocation for Posix

https://github.com/dlang/phobos/commit/0308bd6b9a080501b931f43d1e39b1c3cf79c29a
Merge pull request #5857 from BBasile/issue-16398

--


[Issue 17915] [REG 2.073] core.exception.AssertError@ddmd/optimize.d(614): Assertion failure

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17915

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/dd2fcfa3278dda8d5d1109365ef53f7c92dd1276
fix Issue 17915 - [REG 2.073] core.exception.AssertError@ddmd/optimize.d(614):
Assertion failure

https://github.com/dlang/dmd/commit/1fa67d062b8d755b11722ea112af63cb34cc06b7
Merge pull request #7278 from WalterBright/fix17915

--


[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914

--- Comment #15 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/1c12d6d59e6a3eccf42efe379066c0a9c658fa36
Add std.concurrency.Generator overloads to accept Fiber's stack guard's size

--


[Issue 17944] MSCOFF: debug info not compatible with LLVMs LLD

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17944

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/d75aaa258f155bd98004e8658e8921b7dba8bd51
fix issue 17944: MSCOFF: do not write empty debug$S section

https://github.com/dlang/dmd/commit/775fce733b705a257a905015b781cb9cd40ffca8
Merge pull request #7253 from rainers/lazy_debugS

--


[Issue 17467] BitArray are broken with <<= 64

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17467

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/997eb6229981bb1a28f160175c89dba0e52eae96
Fix Issue 17467 - BitArray are broken with <<= 64

https://github.com/dlang/phobos/commit/2534841d3ccc5412610a4dc85206e63faee5995f
Merge pull request #5842 from
Darredevil/issue-17467-bitArray-rollLeft-rollRight

--


[Issue 17535] dlangspec.pdf: enforce a maximal width for all code examples

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17535

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/c06380e2abf307572b7e139b3711fbf3999fcb78
Fix Issue 17535 - Normalize code line lengths to 80 columns or less

--


[Issue 17900] FreeBSD 10.3 runnable/cpp_abi_tests.d(94): Assertion failure (test suite)

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17900

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/85f76f9963ffd81b0a02361dc6dc05a6eb2df5c8
fix Issue 17900 - FreeBSD 10.3 runnable/cpp_abi_tests.d(94): Assertion failure
(test suite)

https://github.com/dlang/dmd/commit/88c157c377db8d00f8e55adcd3e8abe3a3ea63cd
Merge pull request #7230 from WalterBright/fix17900

--


[Issue 17742] std.range.transposed does not have opIndex

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17742

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/ac29b7bada5ba51fe053f3d4e274eb3a0e2b3417
Fix Issue 17742 - std.range.transposed does not have opIndex

https://github.com/dlang/phobos/commit/b95f73a2c79689768b4a5d8df337882dccba844f
Merge pull request #5805 from Darredevil/issue-17742-transposed-opIndex

--


[Issue 17955] compiler segfault in DsymbolSemanticVisitor::visit(UnittestDeclaration*)

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17955

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/a32b62f9415c65df9186037fbfe2f9acc1f5be56
fix Issue 17955 - compiler segfault in
DsymbolSemanticVisitor::visit(UnittestDeclaration*)

https://github.com/dlang/dmd/commit/56e48617fa91c80555abdcb5251861d3ed4099a7
Merge pull request #7277 from WalterBright/fix17955

--


[Issue 17536] dlangspec.pdf: Unittests documentation uses HTML

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17536

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/58b09c5d11f5b8fcb62a6ddd9d92410aebd1e89a
Fix Issue 17536 - dlangspec.pdf: Unittests documentation uses HTML

https://github.com/dlang/dlang.org/commit/0cd88ece696e32f808d92fc78104445d1e471dc2
Merge pull request #1995 from andralex/issue-17536

--


[Issue 18081] dlangspec.pdf: don't escape dollars in code examples

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18081

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/834bba1623eb86e8bb34e5665b23edc834cf84c6
Fix Issue 18081 - dlangspec.pdf: don't escape dollars in code examples

https://github.com/dlang/dlang.org/commit/6f5d48039564860b2e54114332fbcd73c02f5d61
Merge pull request #1994 from wilzbach/spec-dollar

--


[Issue 16542] makeArray not usable with const initializer

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16542

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/cd66c0cba650d63785ccb79a115964e6472692ca
fix issue 16542

https://github.com/dlang/phobos/commit/2e9271962ffbe2cdabff8fe39be3c55121de6232
Merge pull request #5028 from somzzz/issue_16542

--


[Issue 17940] bool function parameters loaded from struct sometimes miscompiled with -O

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17940

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/87cd61e4c4aca33254bacb2af735433193a51039
fix issue 17940

https://github.com/dlang/dmd/commit/89b0af132529d4635717fd4b16ffc300056dd1b9
Merge pull request #7252 from FeepingCreature/master

--


[Issue 17952] std.range.transposed save is invalid

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17952

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/cd55be3311cee1ab9a0dbcb5fc4ef56374b9c7aa
Fix Issue 17952 - std.range.transposed save is invalid

https://github.com/dlang/phobos/commit/fec4b60ce6003c311bdb8e348d42be825d0625fa
Merge pull request #5832 from Darredevil/issue-17952-transposed-save

--


[Issue 17265] WithStatement: Find better Example for what "with" really does

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17265

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--


[Issue 16649] Header gen skips parens

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16649

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/11c61903ddb4a5fc6c5ef40dbd0334cf8cc29e6e
Fix Issue 16649 - Header gen skips parens

https://github.com/dlang/dmd/commit/f3446967d9069fa7d7514f73febce017c1311531
Merge pull request #7270 from RazvanN7/Issue_16649

Fix Issue 16649 - Header gen skips parens
merged-on-behalf-of: Andrei Alexandrescu 

--


[Issue 15637] Region allocator assert failure when expanding the last allocation

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15637

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/04cbf312a91c20ccddf029b5de8215edaf7a6f7e
Fix Issue 15637 - Region allocator assert failure when expanding the last
allocation

https://github.com/dlang/phobos/commit/53e5cf67df078ad2157039d723ccba8d06f251ba
Merge pull request #5852 from jercaianu/region

--


[Issue 6820] etc.c.curl missing const

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6820

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a516b51d0e44316f6371a3cd78bd3133a035e99b
Fix Issue 6820 - etc.c.curl missing const

https://github.com/dlang/phobos/commit/25a6420e2bc277c75c934e14adfdf5951797e1d8
Merge pull request #5843 from Darredevil/issue-6820-curl-missing-const

--


[Issue 5332] Undefined reference to zero length array

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5332

--- Comment #13 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/239c35233e62f289e6e868b7d4eafdcd63c72ea4
fix Issue 5332 - Undefined reference to zero length array

https://github.com/dlang/dmd/commit/ff4bdb660e6ed2ab1eb6c8725bd673417ef21a41
Merge pull request #7249 from WalterBright/fix5332

--


[Issue 17723] Replace Facebook on the front page with Weka.io

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17723

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/d77bf4c58bf8d659b764631e4954edc9647d8feb
Fix Issue 17723 - Replace Facebook on the front page with Weka.io

https://github.com/dlang/dlang.org/commit/6dc97ac454b185f00222fc8079d9f23d62af65a7
Merge pull request #1937 from wilzbach/fix-17723

https://github.com/dlang/dlang.org/commit/3bd769af6639c34d80d02b0add681aeee2655f72
Issue 17723 - Replace Weka.io on the front page with Netflix

https://github.com/dlang/dlang.org/commit/8420f6ed3e45c5fe15046e44b174e7b3e0f4ee5b
Merge pull request #1942 from wilzbach/fix-17723-netflix

--


[Issue 16392] drop win32.mak

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16392

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/7cde786406269c19bcc91d81605453ce817f4fdc
Fix Issue 16392 - Remove deprecated Windows targets

https://github.com/dlang/dlang.org/commit/4d6452a48659d48309612117d3b26a48a2198094
Merge pull request #1976 from wilzbach/remove-windows-targets

--


[Issue 18103] New: test17868 failing often but not every time

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18103

  Issue ID: 18103
   Summary: test17868 failing often but not every time
   Product: D
   Version: D2
  Hardware: All
OS: Mac OS X
Status: NEW
  Severity: critical
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: bra...@puremagic.com

Not sure when it started exactly, but for a while test17868 in the dmd test
suite has been failing.  Seems to be limited to osx,

https://auto-tester.puremagic.com/platform-history.ghtml?projectid=1=Darwin_64_64

https://auto-tester.puremagic.com/platform-history.ghtml?projectid=1=Darwin_64_32

It's not tied to a single host, all three hosts seem to have a mix of passing
and failing.

--


[Issue 17256] Inconsistent output between json and ddoc

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17256

--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/608b82452befcd6463106b68e6c1b3e40887597c
fix Issue 17256 - Inconsistent output between json and ddoc

--


[Issue 17927] [scope] `scope inout` parameter value can be escaped via return

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17927

--- Comment #9 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/3f7544f355eacc0ad390a89b1bc07ca2dbcf835e
fix Issue 17927 - [scope]  parameter value can be escaped via return

https://github.com/dlang/dmd/commit/b46ac59c637723877b52b98ed50167e0f68aca5d
Merge pull request #7235 from WalterBright/fix17927

--


[Issue 2447] There's no disconnectall for std.signals

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2447

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f0d2655d7535ae16fd681679d75b4c42014348c9
Fix issue 2447 - add disconnectAll for std.signals

https://github.com/dlang/phobos/commit/b5e6365a9bb9e0ca3af194d7add212c092ad1b13
Merge pull request #5812 from edi33416/signals_disconnectall

--


[Issue 17919] std.container.Array could use pureMalloc

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17919

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/06d738f069a4ade5dfcbfc579865237003839ccd
Fix Issue 17919: Make std.container.Array use pureMalloc

https://github.com/dlang/phobos/commit/8e4dfdbd50fbd4a0cadc2bcfa0eae01e4f4ad81e
Merge pull request #5794 from n8sh/container-array-puremalloc

--


[Issue 17538] dlangspec.pdf: 33.14 Comparing D Immutable and Const with C++ Const goes over the page margin

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17538

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/0319fadf639dc6efe7e8d353be279a35d2aff563
Fix Issue 17538 - dlangspec.pdf: 33.14 Comparing D Immutable and Const with C++
Const goes over the page margin

https://github.com/dlang/dlang.org/commit/4b4b0c79402e1b4040203c7a4cd4d4e5beed
Merge pull request #1997 from andralex/issue-17538

--


[Issue 17901] FreeBSD 10.3: AssertError@std/experimental/allocator/building_blocks/region.d(652)

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17901

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/71ed13678d682c0cc446067703cb0e464e7ff2ac
Fix issue 17901 - FreeBSD SbrkRegion alignment

https://github.com/dlang/phobos/commit/5a700c09d809a30ac885de884cd3e1335cf17967
Merge pull request #5806 from edi33416/fix_sbrk_region_freebsd

--


  1   2   >