[Issue 16183] [REG2.068] compile-time string concatenation fails with CTFE and char[] literal involved

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16183

Walter Bright  changed:

   What|Removed |Added

   Keywords||CTFE
 CC||bugzi...@digitalmars.com

--


[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #5 from Walter Bright  ---
So the regression is that Apple switched to clang, and clang does things
differently?

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Ali Cehreli  changed:

   What|Removed |Added

 CC||acehr...@yahoo.com

--- Comment #3 from Ali Cehreli  ---
Here is another case with two modules (and with a WORKAROUND):

// - a.d:
mixin template MyMixin(alias MODULE) {
shared static this() {
initFunc!(mixin(MODULE))();
}
}

void initFunc(alias MODULE)() {
foreach (member; __traits(allMembers, MODULE)) {
static if(__traits(hasMember, __traits(getMember, MODULE, member),
"someProperty")) {
}
}
}

// - b.d:
import a;

mixin MyMixin!__MODULE__;

void main() {
}

getMember inside a.d causes the following warnings:

a.d(9): Deprecation: b.object is not visible from module a
a.d(9): Deprecation: b.a is not visible from module a

Here is a WORKAROUND. Make the following changes in a.d:

1) Convert initFunc to a mixin template
2) Mix it in where it's called
3) Call it after it's mixed in

mixin template MyMixin(alias MODULE) {
shared static this() {
mixin initFunc!(mixin(MODULE));// (2)
initFunc();// (3)
}
}

mixin template initFunc(alias MODULE) {// (1)
void initFunc() {
foreach (member; __traits(allMembers, MODULE)) {
static if(__traits(hasMember, __traits(getMember, MODULE, member),
"someProperty")) {
}
}
}
}

Ali

--


[Issue 16210] std.utf.byUTF can be made into a bidirectional range

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16210

Jack Stouffer  changed:

   What|Removed |Added

 Depends on||16323

--


[Issue 16323] New: std.utf.decodeBack

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16323

  Issue ID: 16323
   Summary: std.utf.decodeBack
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: j...@jackstouffer.com

This should exist.

--


[Issue 16323] std.utf.decodeBack

2016-07-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16323

Jack Stouffer  changed:

   What|Removed |Added

 Blocks||16210

--