[Issue 12466] Template type parameter should not require a new symbol for deducing a type

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12466

Andrej Mitrovic  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Andrej Mitrovic  ---
I think this is incorrect. The first version is what's documented as required
in order to make it possible to derive those types. The second version in 'bar'
would require a DIP.

--


[Issue 12732] Add an Appender-like template that recursively builds a structure of Appender fields

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12732

Andrej Mitrovic  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #5 from Andrej Mitrovic  ---
This doesn't need to be part of Phobos, it's a very specific use-case that can
easily be implemented in a user library (or even just a few lines of code these
days).

--


[Issue 12637] Autotester: Allow browsing through user's active pull requests

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12637

Andrej Mitrovic  changed:

   What|Removed |Added

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

--- Comment #1 from Andrej Mitrovic  ---
Resolved as now the auto-tester shows the remote.

--


[Issue 10846] Allow defining functions in enum declarations

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10846

Andrej Mitrovic  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #3 from Andrej Mitrovic  ---
I think this was misguided and would pointlessly complicate the language. And
these kinds of requests should now be DIP-ified.

--


[Issue 22759] ImportC: cannot modify const expression from dereferencing const pointer declared within function.

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22759

mhh  changed:

   What|Removed |Added

 CC||maxha...@gmail.com

--- Comment #3 from mhh  ---
The solution (although somewhat sacrilegious) on the Compiling-C side is
obvious, on the D side not so much.

--


[Issue 22759] ImportC: cannot modify const expression from dereferencing const pointer declared within function.

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22759

--- Comment #2 from dave287...@gmail.com ---
This bug was encountered in this blogpost:
https://briancallahan.net/blog/20220704.html (section `Running make`).

--


[Issue 23230] New: cannot implicitly convert expression `"define"` of type `char[7]` to `char`

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23230

  Issue ID: 23230
   Summary: cannot implicitly convert expression `"define"` of
type `char[7]` to `char`
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: dave287...@gmail.com

>From https://briancallahan.net/blog/20220704.html


#define NUMSCHKEYS  4
#define MAXLENSCHKEYS   17  /* 17 = longest keyword (16)  + 1 */

char scharkey[NUMSCHKEYS][MAXLENSCHKEYS] =
{ 
"define",
"list",
"if",
"lambda"
};


generates the error for each string literal: cannot implicitly convert
expression `"define"` of type `char[7]` to `char` (or similar message).

--


[Issue 15692] Allow struct member initializer everywhere

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15692

ZombineDev  changed:

   What|Removed |Added

 CC||blac...@bk.ru

--- Comment #7 from ZombineDev  ---
*** Issue 20173 has been marked as a duplicate of this issue. ***

--


[Issue 20173] StructMemberInitializer syntax on right side of assigning

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20173

ZombineDev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||petar.p.ki...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from ZombineDev  ---


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

--


[Issue 21443] scope (failure) with a return breaks safety

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21443

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Dlang Bot  ---
@RazvanN7 created dlang/dmd pull request #14269 "Fix Issue 21443 - scope
(failure) with a return breaks safety" fixing this issue:

- Fix Issue 21443 - scope (failure) with a return breaks safety

https://github.com/dlang/dmd/pull/14269

--


[Issue 18631] std.random.choice does not work with const arrays

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18631

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #5 from Dlang Bot  ---
@GrimMaple created dlang/phobos pull request #8495 "Fix Issue 18631 -
std.random.choice does not work with const arrays" fixing this issue:

- Fix Issue 18631 - std.random.choice does not work with const arrays

  `auto ref` is not needed on `Range` param

https://github.com/dlang/phobos/pull/8495

--


[Issue 20365] Copy constructor not invoked on static arrays of structs but the postblit works

2022-07-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20365

--- Comment #5 from RazvanN  ---
(In reply to kinke from comment #1)
> Let's include CatAssign as well for completeness:
> 
> S[] c;
> c ~= a; // no copy ctor calls, but 4 postblits

The CatAssign example seems to have been fixed, but the initial assign example
still fails.

--