[Issue 2659] Remove the comma operator

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2659

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

https://github.com/dlang/dmd/commit/058c5a301fb3942e01446a60381d5e935ab91ec7
Fix Issue 2659 - Deprecate using the result of comma expression

This should weed out most of the bugs.

https://github.com/dlang/dmd/commit/0a7f87a17304c067ad42e5a25cce36c920d5b467
Merge pull request #5737 from mathias-lang-sociomantic/coma-operator-must-die

Fix Issue 2659 - Deprecate using the return of a comma expression

--


[Issue 6400] opDispatch with WithStatement

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6400

Jason den Dulk  changed:

   What|Removed |Added

 CC||publ...@jasondendulk.com

--- Comment #7 from Jason den Dulk  ---
This is likely the same problem as Issue 8000. I add my voice to ask this be
resolved.

--


[Issue 16151] duplicate symbol _D4core4sync5mutex5Mutex12MonitorProxy6__initZ in:

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16151

Timothee Cour  changed:

   What|Removed |Added

 CC||timothee.co...@gmail.com

--- Comment #1 from Timothee Cour  ---
seems fixed in 2.071.1.b2

--


[Issue 16151] New: duplicate symbol _D4core4sync5mutex5Mutex12MonitorProxy6__initZ in:

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16151

  Issue ID: 16151
   Summary: duplicate symbol
_D4core4sync5mutex5Mutex12MonitorProxy6__initZ in:
   Product: D
   Version: D2
  Hardware: x86
OS: Mac OS X
Status: NEW
  Severity: regression
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: timothee.co...@gmail.com

this regression is hard to minimize but I'm getting with DMD64 D Compiler
v2.071.0 (dmd from homebrew)

duplicate symbol _D4core4sync5mutex5Mutex12MonitorProxy6__initZ in:
/tmp/.rdmd-501/rdmd-project_run.d-XXX/z01.o
~/homebrew/lib//libphobos2.a(mutex_39c_213.o)
ld: 1 duplicate symbol for architecture x86_64

which corresponds to:
core.sync.mutex.Mutex.MonitorProxy.__init

this was after an invocation of rdmd (ie of dmd...)

--


[Issue 16150] New: Rework overview of D's features page

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16150

  Issue ID: 16150
   Summary: Rework overview of D's features page
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dlang.org
  Assignee: nob...@puremagic.com
  Reporter: greensunn...@gmail.com

The overview page isn't very up-to-date anymore - this is (now) one of the core
pages of dlang.org, so let it shine in a fresh light!

http://dlang.org/overview.html


(since this week the overview page is now directly linked on the frontpage
under "Learn")

--


[Issue 15768] std.stdio.trustedStdout accesses __gshared data without synchronization.

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15768

Jack Stouffer  changed:

   What|Removed |Added

 CC||j...@jackstouffer.com

--- Comment #2 from Jack Stouffer  ---
In order for stdout, stdin, and stderr to be shared(File), I think File needs
huge rewrites that will end up being backwards incompatible. Either that, or
you need to write a second implementation of File that supports shared and has
a lot less functionality.

--


[Issue 16149] New: foreach_reverse can't handle index variable of type int

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16149

  Issue ID: 16149
   Summary: foreach_reverse can't handle index variable of type
int
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: yanga...@gmail.com

import std.stdio;

void main()
{
string s = "12345";

foreach(int i, c; s) {}  // ok
foreach_reverse(int i, c; s) {} // error
}

---
Compiler msg:
Error: cannot implicitly convert expression (__r1493.length) of type ulong to
int

--


[Issue 16148] New: The Fibers specifics should be included in the core.thread docs

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16148

  Issue ID: 16148
   Summary: The Fibers specifics should be included in the
core.thread docs
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dlang.org
  Assignee: nob...@puremagic.com
  Reporter: j...@jackstouffer.com

The "Documentation of Fiber internals" located on
https://github.com/dlang/druntime/blob/master/src/core/thread.d provides very
helpful information to the programmer that would nice to be able to get at
easily.

--


[Issue 16147] Provide shiny 404 error pages

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16147

greensunn...@gmail.com changed:

   What|Removed |Added

Summary|Provide nshiny 404 error|Provide shiny 404 error
   |pages   |pages

--


[Issue 16147] New: Provide nshiny 404 error pages

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16147

  Issue ID: 16147
   Summary: Provide nshiny 404 error pages
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dlang.org
  Assignee: nob...@puremagic.com
  Reporter: greensunn...@gmail.com

>From the forum:

Not only, and this is even more "critical" for new users. If I type
"https://dlang.org//asdasd"; instead of "https://dlang.org/";, the server returns
us a "ugly" 404 error page.

--


[Issue 16146] postblit is not called on struct creation with "{field:value}" syntax

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16146

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--


[Issue 16146] New: postblit is not called on struct creation with "{field:value}" syntax

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16146

  Issue ID: 16146
   Summary: postblit is not called on struct creation with
"{field:value}" syntax
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: major
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: ket...@ketmar.no-ip.org

here is sample code:

import std.stdio;


struct X {
  int* rc;
  this (int n) { auto x = new int[](1); rc = x.ptr; *rc = n; }
  this (this) { writeln("postblit; rc=", *rc); ++*rc; }
  ~this () { writeln("dtor; rc=", *rc, "; will be ", *rc-1); --*rc; }
  void opAssign (X src) { assert(0); } // just in case
}

struct Boo {
  X st;
}

void boo (ref Boo boo) {
  writeln("boo");
}

void foo (X fl) {
  writeln("foo");
  version(bug)
Boo b = { st: fl };
  else
auto b = Boo(fl);
  writeln("foo 001");
  boo(b);
  writeln("foo exit");
}

void main () {
  {
auto fl = X(1);
writeln("000");
foo(fl);
  }
  writeln("001");
}


with normal code path the output is:
000
postblit; rc=1
foo
postblit; rc=2
foo 001
boo
foo exit
dtor; rc=3; will be 2
dtor; rc=2; will be 1
dtor; rc=1; will be 0
001

with -version=bug the output is:
000
postblit; rc=1
foo
foo 001
boo
foo exit
dtor; rc=2; will be 1
dtor; rc=1; will be 0
dtor; rc=0; will be -1
001


as we can see, postblit is not called when Boo is created with `{ st: fl }`
syntax. this makes writing refcounted data types with this syntax impossible
without ugly hacks.

--


[Issue 14117] core.atomic should be @safe

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14117

--- Comment #1 from Walter Bright  ---
https://github.com/dlang/druntime/pull/1589

--


[Issue 16140] while(auto x = y) does not behave like if(auto x = y)

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16140

Sophie  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=13526

--


[Issue 13526] Allow to declare a variable in with statement: with(auto p = new Panel())

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13526

Sophie  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=16140

--


[Issue 16140] while(auto x = y) does not behave like if(auto x = y)

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16140

Sophie  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=11070

--


[Issue 11070] Allow declaration statement in a switch expression

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11070

Sophie  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=16140

--


[Issue 16145] New: enumerate can't work with ref foreach

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16145

  Issue ID: 16145
   Summary: enumerate can't work with ref foreach
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: major
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: john.loughran.col...@gmail.com

enumerate works by returning a tuple of index and element, so e.g.

foreach(i, ref el; r.enumerate) el = 3;

compiles fine but will not do anything to el.

--


[Issue 13526] Allow to declare a variable in with statement: with(auto p = new Panel())

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13526

Ketmar Dark  changed:

   What|Removed |Added

 CC||meapineap...@gmail.com

--- Comment #5 from Ketmar Dark  ---
*** Issue 16140 has been marked as a duplicate of this issue. ***

--


[Issue 16140] while(auto x = y) does not behave like if(auto x = y)

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16140

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--


[Issue 16140] while(auto x = y) does not behave like if(auto x = y)

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16140

Ketmar Dark  changed:

   What|Removed |Added

   Hardware|x86 |All
 OS|Mac OS X|All

--


[Issue 16140] while(auto x = y) does not behave like if(auto x = y)

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16140

Ketmar Dark  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from Ketmar Dark  ---


*** This issue has been marked as a duplicate of issue 13526 ***

--


[Issue 16140] while(auto x = y) does not behave like if(auto x = y)

2016-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16140

Ketmar Dark  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |---

--- Comment #2 from Ketmar Dark  ---
oops. sorry, i misread "with" as "while"... ;-)

--