Re: Release D 2.072.0

2016-11-04 Thread Vladimir Panteleev via Digitalmars-d-announce
On Monday, 31 October 2016 at 20:35:24 UTC, Martin Nowak wrote: and I did take care of that forward reference bug (Issue 16607). Thanks again for that. That one would've actually kept me from upgrading for my current project.

Re: system's "kill " signal

2016-11-04 Thread Nicholas Wilson via Digitalmars-d-learn
On Saturday, 5 November 2016 at 02:24:00 UTC, Konstantin Kutsevalov wrote: Hi, is there a way to catch system signal of "kill" command or "shutdown"? PS: are there some other ways also to send signals to running a D application? have a look in std.process I don't think you can catch

Re: Release D 2.072.0

2016-11-04 Thread Soulsbane via Digitalmars-d-announce
On Monday, 31 October 2016 at 01:27:08 UTC, Martin Nowak wrote: Glad to announce D 2.072.0. http://dlang.org/changelog/2.072.0.html -Martin I've run into a problem with code using ctRegex that fails to compile only in release build. private immutable string TOC_LINE_PATTERN =

[Issue 16627] [Reg 2.072] non-static structs with postblit/dtor fields are now nested

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16627 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/868ce84e30a3d4e1157e9e72bc3e308b0cd0b1db fix Issue 16627 - non-static structs with postblit/dtor

[Issue 16607] [REG2.072b1] forward reference error for nested struct

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16607 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b295ff509a52cd332d975014279ed891e11f465d fix Issue 16607 - forward reference error for nested struct

[Issue 16625] [Reg 2.072] new and previously undeprecated switch case fallthrough error

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16625 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d8075dc0581ae1da6e27762689a2d902f4c0947e fix Issue 16625 - undeprecated switch fallthrough error

Re: Calling std.variant.visit from a pure function

2016-11-04 Thread Paul Backus via Digitalmars-d-learn
On Friday, 4 November 2016 at 23:38:47 UTC, sarn wrote: I suggest trying it with the latest dmd and filing a bug report. Taking a quick look at the library code (https://github.com/dlang/phobos/blob/master/std/variant.d), it *seems* like everything uses templates and functions returning

[Issue 16662] New: Can't call std.variant.visit from a pure function

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16662 Issue ID: 16662 Summary: Can't call std.variant.visit from a pure function Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor

Re: CTFE Status

2016-11-04 Thread ketmar via Digitalmars-d
On Friday, 4 November 2016 at 10:59:25 UTC, Marc Schütz wrote: In this case better make sure to remove the resulting dead code from the old interpreter, otherwise it will become and unmaintainable mess in the long run. interpreter is used all over the code, and it is a set of visitors doing

Re: is there "this"?

2016-11-04 Thread Konstantin Kutsevalov via Digitalmars-d-learn
On Thursday, 3 November 2016 at 13:40:11 UTC, Steven Schveighoffer wrote: On 11/2/16 4:43 AM, Jonathan M Davis via Digitalmars-d-learn In the case of the original post, however, you *need* to use this.value, as the parameter masks the member of the same name. Using 'this' removes ambiguity.

system's "kill " signal

2016-11-04 Thread Konstantin Kutsevalov via Digitalmars-d-learn
Hi, is there a way to catch system signal of "kill" command or "shutdown"? PS: are there some other ways also to send signals to running a D application?

Re: Regresion with 2.071.2 and higher with curl under wine

2016-11-04 Thread brocolis via Digitalmars-d
On Saturday, 5 November 2016 at 00:04:16 UTC, Daniel Kozak wrote: I am using dmd under wine for some time and everything works OK (in many cases experience is better then on native windows machine setup). But with twol latest dmd releases I am unable to use anything curl related. Even basic

[Issue 16661] New: std/format.d(1070): Incorrect format specifier: .2f for wstring and dstring

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16661 Issue ID: 16661 Summary: std/format.d(1070): Incorrect format specifier: .2f for wstring and dstring Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: CTFE Status

2016-11-04 Thread Stefan Koch via Digitalmars-d
On Friday, 4 November 2016 at 10:59:25 UTC, Marc Schütz wrote: In this case better make sure to remove the resulting dead code from the old interpreter, otherwise it will become and unmaintainable mess in the long run. If you ask me the old interpreter is already an unmaintainble mess. It

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread Andrei Alexandrescu via Digitalmars-d
On 11/04/2016 07:01 PM, John Colvin wrote: On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu wrote: Error: failed to create path to file: .dub/obj/.dub/packages/checkedint-0.5.3/.dub/build/library-release-linux.posix-x86_64-ldc_0-34AC553328DC970F29AC41DDB38D09AB/libcheckedint.a

Regresion with 2.071.2 and higher with curl under wine

2016-11-04 Thread Daniel Kozak via Digitalmars-d
I am using dmd under wine for some time and everything works OK (in many cases experience is better then on native windows machine setup). But with twol latest dmd releases I am unable to use anything curl related. Even basic example from

Re: Calling std.variant.visit from a pure function

2016-11-04 Thread sarn via Digitalmars-d-learn
On Friday, 4 November 2016 at 02:56:07 UTC, Paul Backus wrote: When I compile this (using DMD 2.069 on Debian Linux), I get an error saying that I can't call visit from a pure function. This is surprising, since all visit does (in theory) is call the provided functions, and all of _them_ are

Re: not callable error

2016-11-04 Thread lobo via Digitalmars-d-learn
On Friday, 4 November 2016 at 14:37:04 UTC, bluphantom91 wrote: On Friday, 4 November 2016 at 02:59:49 UTC, Paul Backus wrote: On Friday, 4 November 2016 at 02:28:17 UTC, bluphantom91 wrote: Hello, I am trying to finish up a group project but I am running into a small problem. I keep getting

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread John Colvin via Digitalmars-d
On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu wrote: Error: failed to create path to file: .dub/obj/.dub/packages/checkedint-0.5.3/.dub/build/library-release-linux.posix-x86_64-ldc_0-34AC553328DC970F29AC41DDB38D09AB/libcheckedint.a No such file or directory FAIL

Re: If Statement with Declaration

2016-11-04 Thread Timon Gehr via Digitalmars-d
On 04.11.2016 21:03, Andrej Mitrovic wrote: On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote: So I was thinking of a way of extending if statements that have declarations. The following being as example of the current use of if statements with declarations: if(int* weDontPollute

Re: If Statement with Declaration

2016-11-04 Thread Andrej Mitrovic via Digitalmars-d
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote: So I was thinking of a way of extending if statements that have declarations. The following being as example of the current use of if statements with declarations: if(int* weDontPollute = someFunc()) { // use

Re: If Statement with Declaration

2016-11-04 Thread Steven Schveighoffer via Digitalmars-d
On 11/4/16 1:46 PM, Jerry wrote: On Friday, 4 November 2016 at 16:15:21 UTC, Steven Schveighoffer wrote: It's just a strawman type, I'm sure there's ways to handle these things, I just didn't put a lot of effort into all the cases. But really it's just syntax to separate the bool check from

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread ZombineDev via Digitalmars-d
On Friday, 4 November 2016 at 17:12:42 UTC, Andrei Alexandrescu wrote: [...] $ PATH=~/bin/ldc2-1.1.0-beta3-linux-x86/bin:$PATH $ dub test --compiler=ldc2 [...] BTW, you should try out the install script (from http://dlang.org/download): curl -fsS https://dlang.org/install.sh | bash -s

Re: not callable error

2016-11-04 Thread Nemanja Boric via Digitalmars-d-learn
On Friday, 4 November 2016 at 14:37:04 UTC, bluphantom91 wrote: On Friday, 4 November 2016 at 02:59:49 UTC, Paul Backus wrote: On Friday, 4 November 2016 at 02:28:17 UTC, bluphantom91 wrote: Hello, I am trying to finish up a group project but I am running into a small problem. I keep getting

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread ZombineDev via Digitalmars-d
On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu wrote: On 11/04/2016 01:12 PM, Andrei Alexandrescu wrote: So I'm working on the checkedint pull request (really need to get that in...) and was trying to get some benchmarks going with ldc. The stock ldc on mint is outdated and it

Re: If Statement with Declaration

2016-11-04 Thread Adrian Matoga via Digitalmars-d
On Friday, 4 November 2016 at 15:34:00 UTC, Jerry wrote: On Friday, 4 November 2016 at 14:16:44 UTC, Matthias Bentrup wrote: On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote: if(int i = someFunc(); i >= 0) { // use i } Thoughts on this sort of feature? I would

Re: If Statement with Declaration

2016-11-04 Thread Jerry via Digitalmars-d
On Friday, 4 November 2016 at 16:15:21 UTC, Steven Schveighoffer wrote: It's just a strawman type, I'm sure there's ways to handle these things, I just didn't put a lot of effort into all the cases. But really it's just syntax to separate the bool check from the value itself. You can get

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread Andrei Alexandrescu via Digitalmars-d
On 11/04/2016 01:12 PM, Andrei Alexandrescu wrote: So I'm working on the checkedint pull request (really need to get that in...) and was trying to get some benchmarks going with ldc. The stock ldc on mint is outdated and it can't compile the code, so I needed to do a self-installation. I've put

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread Johannes Pfau via Digitalmars-d
Am Fri, 4 Nov 2016 13:12:42 -0400 schrieb Andrei Alexandrescu : > So I'm working on the checkedint pull request (really need to get > that in...) and was trying to get some benchmarks going with ldc. The > stock ldc on mint is outdated and it can't compile the code,

Re: check instance of nested variadic template

2016-11-04 Thread Basile B. via Digitalmars-d-learn
On Friday, 4 November 2016 at 15:50:36 UTC, Gianni Pisetta wrote: Hi all, I am having issues finding a solution for this, i want to check if an alias is an istance of a variadic template nested in another variadic template. [...] there is some sort of workaround? Thanks, Gianni Hello, I'm

Re: If Statement with Declaration

2016-11-04 Thread Jerry via Digitalmars-d
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote: Thoughts on this sort of feature? Love your name, Jerry ;) Maybe something like this psuedo code: struct Condition(T) { Condition(T val, bool cond) { m_val = val; m_cond = cond; } bool opCast(T)() if(is(T == bool)) {

How to use dub with a manual ldc installation?

2016-11-04 Thread Andrei Alexandrescu via Digitalmars-d
So I'm working on the checkedint pull request (really need to get that in...) and was trying to get some benchmarks going with ldc. The stock ldc on mint is outdated and it can't compile the code, so I needed to do a self-installation. I've put it in ~/bin/ldc2-1.1.0-beta3-linux-x86. Then: $

Re: If Statement with Declaration

2016-11-04 Thread Nick Treleaven via Digitalmars-d
On Friday, 4 November 2016 at 13:56:57 UTC, Andrea Fontana wrote: If you don't like indentation you can simply ignore it or you can use old goto :) { int i = someFunc(); if (i < 0) goto outer; // your code here } outer: BTW there is a trick to avoid goto+label: switch (true) {

Re: If Statement with Declaration

2016-11-04 Thread Steven Schveighoffer via Digitalmars-d
On 11/4/16 11:27 AM, Jerry wrote: On Friday, 4 November 2016 at 14:10:51 UTC, Steven Schveighoffer wrote: Hm... what about something like: struct BoolCond(T, string cond) { T val; bool opCast(B)() if(is(B == bool)) { return mixin("val " ~ cond); } } auto boolcond(string cond,

Boston D Language Meetup in Back Bay

2016-11-04 Thread Steven Schveighoffer via Digitalmars-d-announce
Just announced: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/235353279/ We are going to try a freely available conference room to have a presentation. No details on the presentation yet (I will figure that out soon), and probably no streaming this time. -Steve

check instance of nested variadic template

2016-11-04 Thread Gianni Pisetta via Digitalmars-d-learn
Hi all, I am having issues finding a solution for this, i want to check if an alias is an istance of a variadic template nested in another variadic template. Here is an example: template A(As...) { template B(Bs...) { } } alias BI = A!(1,2).B!(3,4,5); Now i want to test if BI is an

Re: If Statement with Declaration

2016-11-04 Thread Jerry via Digitalmars-d
On Friday, 4 November 2016 at 14:10:51 UTC, Steven Schveighoffer wrote: On 11/3/16 6:29 PM, Jerry wrote: So I was thinking of a way of extending if statements that have declarations. The following being as example of the current use of if statements with declarations: if(int*

Re: If Statement with Declaration

2016-11-04 Thread Jerry via Digitalmars-d
On Friday, 4 November 2016 at 14:16:44 UTC, Matthias Bentrup wrote: On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote: if(int i = someFunc(); i >= 0) { // use i } Thoughts on this sort of feature? I would prefer the syntax if( (int i = someFunc()) >= 0 ) {

Re: AA ignores disabling of postblit for key types

2016-11-04 Thread Nordlöw via Digitalmars-d
On Friday, 21 October 2016 at 18:35:38 UTC, Jonathan M Davis wrote: On Friday, October 21, 2016 12:18:28 Nordlöw via Digitalmars-d wrote: It seems AA's doesn't respect disabling of postblit for its Key-type even when it's sent as an r-value. This is a serious bug. Well, I wouldn't expect it

Re: Combining "chunkBy" and "until" algorithms

2016-11-04 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Friday, 4 November 2016 at 08:04:12 UTC, Jacob Carlborg wrote: Currently I'm using a standard for loop iterating over the lines. I'm always looking at the current line and the next line. When the current line is the standard pattern and the next line is is not, I do a separate loop until I

Re: What is the simplest way of doing @nogc string concatenation?

2016-11-04 Thread Guillaume Piolat via Digitalmars-d-learn
On Friday, 4 November 2016 at 14:55:27 UTC, Guillaume Piolat wrote: On Thursday, 3 November 2016 at 18:54:14 UTC, Gary Willoughby wrote: What is the simplest way of doing @nogc string concatenation? I use sprintf + zero-terminated strings (or a RAII struct to convert slices to ZT strings).

Re: What is the simplest way of doing @nogc string concatenation?

2016-11-04 Thread Guillaume Piolat via Digitalmars-d-learn
On Thursday, 3 November 2016 at 18:54:14 UTC, Gary Willoughby wrote: What is the simplest way of doing @nogc string concatenation? I use sprintf + zero-terminated strings (or a RAII struct to convert slices to ZT strings).

Re: If Statement with Declaration

2016-11-04 Thread Steven Schveighoffer via Digitalmars-d
On 11/4/16 10:10 AM, Steven Schveighoffer wrote: On 11/3/16 6:29 PM, Jerry wrote: So I was thinking of a way of extending if statements that have declarations. The following being as example of the current use of if statements with declarations: if(int* weDontPollute = someFunc()) {

Re: not callable error

2016-11-04 Thread bluphantom91 via Digitalmars-d-learn
On Friday, 4 November 2016 at 02:59:49 UTC, Paul Backus wrote: On Friday, 4 November 2016 at 02:28:17 UTC, bluphantom91 wrote: Hello, I am trying to finish up a group project but I am running into a small problem. I keep getting an error about fgetc not being callable. The purpose of my

Re: If Statement with Declaration

2016-11-04 Thread Matthias Bentrup via Digitalmars-d
On Thursday, 3 November 2016 at 22:29:34 UTC, Jerry wrote: if(int i = someFunc(); i >= 0) { // use i } Thoughts on this sort of feature? I would prefer the syntax if( (int i = someFunc()) >= 0 ) { // use i } as this matches the already existing assignment

Re: If Statement with Declaration

2016-11-04 Thread Steven Schveighoffer via Digitalmars-d
On 11/3/16 6:29 PM, Jerry wrote: So I was thinking of a way of extending if statements that have declarations. The following being as example of the current use of if statements with declarations: if(int* weDontPollute = someFunc()) { // use weDontPollute } That's great

Re: If Statement with Declaration

2016-11-04 Thread Andrea Fontana via Digitalmars-d
On Friday, 4 November 2016 at 13:38:30 UTC, Superstar64 wrote: On Thursday, 3 November 2016 at 22:32:17 UTC, Stefan Koch wrote: Just Introduce another block { int i = someFunc(); if (i >= 0) { ... } } // i is not visible here That adds 2 indention levels after formatting. Unfortunately

Re: If Statement with Declaration

2016-11-04 Thread Superstar64 via Digitalmars-d
On Thursday, 3 November 2016 at 22:32:17 UTC, Stefan Koch wrote: Just Introduce another block { int i = someFunc(); if (i >= 0) { ... } } // i is not visible here That adds 2 indention levels after formatting. Unfortunately this doesn't work: --- { int i = someFunc(); if (i >= 0):

Re: CTFE Status

2016-11-04 Thread Marc Schütz via Digitalmars-d
On Friday, 4 November 2016 at 01:19:36 UTC, Chris Wright wrote: On Thu, 03 Nov 2016 15:44:20 +, Marc Schütz wrote: On Tuesday, 1 November 2016 at 17:41:35 UTC, Stefan Koch wrote: I intend to keep the current implemntation around as a fallback. For things that are used rarely. like

Re: CTFE Status

2016-11-04 Thread Marc Schütz via Digitalmars-d
On Thursday, 3 November 2016 at 16:35:08 UTC, Stefan Koch wrote: On Thursday, 3 November 2016 at 15:44:20 UTC, Marc Schütz wrote: On Tuesday, 1 November 2016 at 17:41:35 UTC, Stefan Koch wrote: I intend to keep the current implemntation around as a fallback. For things that are used rarely.

Re: If Statement with Declaration

2016-11-04 Thread ixid via Digitalmars-d
On Friday, 4 November 2016 at 00:04:28 UTC, mogu wrote: Introducing a block is not intuitive and cause an identation. How is using a block to produce a sub-scope not intuitive? That's using a standard feature to do exactly what it is supposed to do.

Re: https://issues.dlang.org/show_bug.cgi?id=2504: reserve for associative arrays

2016-11-04 Thread Shachar Shemesh via Digitalmars-d
On 03/11/16 23:00, Yuxuan Shui wrote: On Wednesday, 2 November 2016 at 03:36:42 UTC, Andrei Alexandrescu wrote: [snip] * The implementation cannot use Phobos' allocator because it's in druntime. How about let the user provide the memory block when they calls reserve()? I think that's just

Re: https://issues.dlang.org/show_bug.cgi?id=2504: reserve for associative arrays

2016-11-04 Thread Shachar Shemesh via Digitalmars-d
On 02/11/16 05:36, Andrei Alexandrescu wrote: Cons: * Built-in hashtables are a convenience facility more than a high-performance one, so providing an efficiency-oriented primitive seems a bit odd. I think that, in itself, is a mistake. A language that thinks of itself as a system

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

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16570 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/620ecc2fa91dd88310a9205666fc0c826a778303 fix Issue 16570 - Enum member with interpreted...

[Issue 16523] [ICE] Internal error: backend/symbol.c 1031

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16523 --- Comment #10 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/cdeca315729264ddbdd72ad9a83ea4fc5762e0dd fix Issue 16523 - case variables should be const/immutable

[Issue 14613] DMD: Internal error: backend/cod1.c 1567 on '-O' switch

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14613 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a4f584ffdc195cc99a738ba495c8261284813d2a fix Issue 14613 - DMD: Internal error: backend/cod1.c 1567

[Issue 16484] regression(2.064) Overloaded empty funcs trigger AssertError: "Called `get' on null Nullable"

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16484 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/daf387f065d4914cc868deb584ee8b6fb53774a5 add comment in reponse to Issue 16484

[Issue 15862] Functions that return types with mutable indirections should be weakly pure, not strongly pure

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15862 --- Comment #16 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/4dfc9e9252220ef724412a74b3a8caf862d0a95e fix Issue 15862 - allocating storage in pure functions

[Issue 15989] Initializing manifest constants with CTFE allocated data

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15989 --- Comment #13 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e6c2080774ec8e00356b228f8119945846cc4d43 fix Issue 15989 - Initializing manifest constants with CTFE

[Issue 16525] C++ member variables have no mangling

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16525 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/376b34d10968c0ea0169fe1c6876b7b3227dea0e fix Issue 16525 - C++ member variables have no mangling

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

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907 --- Comment #12 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f899b4b59620e354b6ba0acfe843efb559202cd8 fix Issue 15907 - unjustified deprecation with getMember

[Issue 16530] -O -cov interaction leads to wrong codegen

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16530 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/ad382b87d3f0a9f8992fe836165e26a68724ad77 fix Issue 16530 - -O -cov interaction leads to wrong codegen

[Issue 16536] DMD master does not build on OS X 10.11.6/Xcode 7.3.1

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16536 --- Comment #20 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/3b34132a9dd6fd3ac6bd32c572dc6a9c2a75b8f8 fix Issue 16536 - OSX mangling mismatch in dmd's C++/D ABI

[Issue 3827] Warn against and then deprecate implicit concatenation of adjacent string literals

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3827 --- Comment #44 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/31f070f607398bcef72110f40c125a7f2ea7761b Fix issue 3827 - Deprecate implicit string concatenation

[Issue 16563] [REG 2.072.0-b1] Wrong struct size/alignment in local struct

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16563 --- Comment #8 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07bbf2d0ef547339dee5e886a1a924691c3eb8b8 fix Issue 16563 - wrong alignment in function

[Issue 16499] Misleading error message for 'in' operator with wrong argument

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16499 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/573ab09aac2e59225e86440702a3769761734f15 Merge pull request #6140 from yshui/master --

[Issue 15780] [REG2.069] CTFE foreach fails with tuple

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15780 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/60390bd21a45479b6377751fef4be40159effe0a fix Issue 15780 - [REG2.069] CTFE foreach fails with tuple

[Issue 16589] Taking address of stack variables in @safe code is allowed in some cases

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16589 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/34213361ec3cd13485db7eb4044e93b85178397c fix Issue 16589 - Taking address of stack variables in @safe

[Issue 16572] [Reg 2.072.0-b1] can't take inout delegate

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16572 --- Comment #12 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/847baa9210e62dbb058b86031a2b36e3a1195440 fix Issue 16572 - can't take inout delegate

[Issue 16449] add support for RDTSCP in iasm

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16449 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/311efc70e4a9de30329b5f02a8387b7ccf5014ac Fix issue 16449 - Add support for the RDTSCP opcode in IASM.

[Issue 16348] [REG 2.070.2] ICE with package visibility

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16348 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/93c3dcf26f5c5ae612ccce044012d2b297fe46bf fix Issue 16348 - ICE with package visibility

[Issue 16560] [Mir] Prefetch intrinsics like in LDC

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16560 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/09e3fdd31d53fcb96a787a6a9de466a7c1f72ac1 fix Issue 16560 - [Mir] Prefetch intrinsics like in LDC

[Issue 16031] [REG2.071] stale DW.ref.name EH symbol used with -lib and -fPIC

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16031 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/253b94371378a1acdaca26b515366be74b4f35bd fix Issue 16031 - symbol idx out of bounds w/ multilib and

[Issue 16085] wrong visibility warning for overloaded alias symbol

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 --- Comment #15 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/22dc48171eaa3ef43dbec3e6bab6ea7fcb839a37 fix Issue 16085 - wrong visibility warning for overloaded

[Issue 15857] incorrect checkimports mismatch for overload sets

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15857 --- Comment #16 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c5822394c89c98a8855302164433acf6db09208b fix Issue 15857 - incorrect checkimports mismatch for

[Issue 16460] [REG2.071] ICE for package visibility check in function literal

2016-11-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16460 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0c9374cec813f8b29483bebd5a659be55958c299 fix Issue 16460 - ICE for package visibility check in

Combining "chunkBy" and "until" algorithms

2016-11-04 Thread Jacob Carlborg via Digitalmars-d-learn
I have a file with a bunch of lines I want to process. I want to process these lines line by line. Most of these lines have the same pattern. Some of the lines have a different pattern. I want to bundle those lines, which have a non-standard pattern, together with the last line that had the

Re: Error: function std.stdio.setmode is not accessible from module a

2016-11-04 Thread Kirill Kryukov via Digitalmars-d-learn
On Wednesday, 2 November 2016 at 11:17:49 UTC, Jonathan M Davis wrote: version(DIGITAL_MARS_STDIO) extern(C) int setmode(int, int) nothrow @nogc; else version(MICROSOFT_STDIO) { extern(C) int _setmode(int, int) nothrow @nogc; alias setmode = _setmode; } It really should be put in