Re: VisualD temp D variables showing up

2017-12-29 Thread Rainer Schuetze via Digitalmars-d-debugger
On 29.12.2017 14:46, Amorphorious wrote: Also, when I put a BP on an if statement it is not hit and Visual D says that no symbols have been loaded for the document. If I put the BP on a line that isn't an if statement, it hits the BP fine. I don't think this is a general rule, as it's

Re: VisualD temp D variables showing up

2017-12-29 Thread Rainer Schuetze via Digitalmars-d-debugger
On 29.12.2017 13:05, Amorphorious wrote: Also, tuple display is quite verbose, can it be removed too? +    [0]    {__expand_field_0=-.08063807692, __expand_field_1=.4066909153, __expand_field_2=.91} std.typecons.Tuple!(double, double, double).Tuple Currently the field names are

Re: VisualD temp D variables showing up

2017-12-29 Thread Rainer Schuetze via Digitalmars-d-debugger
On 29.12.2017 12:25, Amorphorious wrote: I am computing equations involving ^^ and about 90%, around 40, temp variables are showing up in the locals window.     __powtmp5173    .712227326    double     __powtmp5174    .3275114687    double     __powtmp5175    1    double  

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Elronnd via Digitalmars-d
On Friday, 29 December 2017 at 22:05:31 UTC, I Love Stuffing wrote: Also, for a mature D, some damn collections. Queues, Stacks, Deques, etc... std.container.dlist (https://dlang.org/phobos/std_container_dlist.html)?

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/29/2017 7:07 PM, IM wrote: They start writing some code, and eventually they hit one of those unhelpful compile error messages, which could indicate one of the following: - An error in the engineer's knowledge of the language which the compiler didn't help to understand what it is so

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
Creating a bugzilla account takes a couple minutes. It is enough friction to serve as a reasonable filter against spammers and junk postings. It's not like we have a shortage of bugzilla issues and are wondering what to do next. It's working well enough for those who care enough to make an

Fiber.yield with call scope guard

2017-12-29 Thread ChangLong via Digitalmars-d-learn
I am look a method like Fiber.yieldAndThrow, but also call all scopeguard. I am hack Fiber into struct with no throw, try to use it on network project with high performance. I use scopeguard to auto release memory or resource, but when I call Fiber .yieldAndThrow the scopeguard chain will

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/29/2017 5:40 PM, Adam D. Ruppe wrote: > [...] PRs to fix bugzilla issues get submitted every day. I don't see a better way. I can't monitor every forum, I rely on you and others to do so and submit the issues.

Re: D Videos

2017-12-29 Thread Mike Parker via Digitalmars-d
On Saturday, 30 December 2017 at 01:34:02 UTC, Mike Franklin wrote: On Friday, 29 December 2017 at 21:51:47 UTC, Arun Chandrasekaran wrote: All DConf2014 videos have vanished from YouTube. They are now here: https://www.youtube.com/channel/UC5DNdmeE-_lS6VhCVydkVvQ The links on the wiki

[Issue 18030] Segmentation fault with __traits(getProtection) on template function.

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18030 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18030] Segmentation fault with __traits(getProtection) on template function.

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18030 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/08aca45f7eee7e614956963d149218c7ab01f358 fix Issue 18030 - Segmentation fault with

Re: why @property cannot be pass as ref ?

2017-12-29 Thread ChangLong via Digitalmars-d-learn
On Wednesday, 20 December 2017 at 18:43:21 UTC, Ali Çehreli wrote: Thanks to Mengü for linking to that section. I have to make corrections below. Ali Thanks for explain, Ali And Mengu. What I am try to do is implement a unique data type. (the ownership auto moved into new handle)

Re: What do you want to see for a mature DLang?

2017-12-29 Thread IM via Digitalmars-d
On Friday, 29 December 2017 at 17:29:47 UTC, Adam D. Ruppe wrote: On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote: -- Better compiler errors, better compiler errors, better compiler errors. This is the only thing I greatly care about anymore. Biggest problem D has in real world

[Issue 4480] JSON: include location range, not just line numbers, for everything

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4480 Neia Neutuladh changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18141] [REG2.078a] dmd -v no longer prints predefs

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18141 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/6c7df23338994818a304cb7082c647928a23da76 Fix Issue 18141 - [REG2.078a] dmd -v no longer prints predefs

[Issue 18093] [Reg 2.071] MSCOFF: dmd crashes when overriding a C++ method in a mixin template

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18093 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/691aa65e81ce626b63ef7a5e75cfbdce07c8b411 fix issue 18093: [Reg 2.071] MSCOFF: dmd crashes when

[Issue 18013] DMD test suite assertion failure in test_cdvecfill.d

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18013 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/345c9ddaef5e769673ccaf32f8c5d47e88685e4c Fix Issue 18013 - DMD test suite assertion failure in

[Issue 18099] betterC check throw statements error!

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18099 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/42ea3732608bc4d877fb0139a00ade9ba9379dd8 fix Issue 18099 - betterC check throw statements error!

[Issue 1901] Structs with alias template params not accepted as types in declarations

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1901 Neia Neutuladh changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3065] (D1 only) error: this for variable needs to be Type not Type!(arguments).Type

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3065 Neia Neutuladh changed: What|Removed |Added Status|NEW |RESOLVED

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 30 December 2017 at 02:37:24 UTC, IM wrote: Just curious, why Bugzilla and not something else? Bugzilla was the most well-known solution at the time. Keep in mind the D bugzilla has been around since 2006. As far as I understand it, migration at this point is deemed a big pain.

Re: What do you want to see for a mature DLang?

2017-12-29 Thread IM via Digitalmars-d
On Saturday, 30 December 2017 at 01:40:39 UTC, Adam D. Ruppe wrote: On Friday, 29 December 2017 at 23:24:45 UTC, Walter Bright wrote: That's been closed for a while now. Well, take your pick: https://issues.dlang.org/show_bug.cgi?id=12694 https://issues.dlang.org/show_bug.cgi?id=13340

[Issue 18145] Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18145 --- Comment #2 from Seb --- (For reference, I can't reproduce this on Linux with Make 4.2.1) --

[Issue 18145] Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18145 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 29 December 2017 at 23:24:45 UTC, Walter Bright wrote: That's been closed for a while now. Well, take your pick: https://issues.dlang.org/show_bug.cgi?id=12694 https://issues.dlang.org/show_bug.cgi?id=13340 https://issues.dlang.org/show_bug.cgi?id=16059 You always tell people to

Re: D Videos

2017-12-29 Thread Mike Franklin via Digitalmars-d
On Friday, 29 December 2017 at 21:51:47 UTC, Arun Chandrasekaran wrote: All DConf2014 videos have vanished from YouTube. They are now here: https://www.youtube.com/channel/UC5DNdmeE-_lS6VhCVydkVvQ The links on the wiki need to be updated. Mike

Re: D needs to publicize its speed of compilation

2017-12-29 Thread H. S. Teoh via Digitalmars-d
On Fri, Dec 29, 2017 at 05:52:36PM -0700, Jonathan M Davis via Digitalmars-d wrote: [...] > Oh, certainly. But my point is that once it starts taking minutes to > be able to build and run the unit tests for what you're currently > doing, it becomes infeasible to edit-test-edit-etc. in any kind of

[Issue 18145] New: Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18145 Issue ID: 18145 Summary: Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 18144] New: Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18144 Issue ID: 18144 Summary: Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug Product: D Version: D2 Hardware: x86 OS: Mac OS X

Re: D needs to publicize its speed of compilation

2017-12-29 Thread Jonathan M Davis via Digitalmars-d
On Friday, December 29, 2017 15:51:53 H. S. Teoh via Digitalmars-d wrote: > On Fri, Dec 29, 2017 at 03:49:07PM -0700, Jonathan M Davis via > Digitalmars-d wrote: [...] > > > It also depends on your personality. Personally, while I like builds > > being near instantaneous when dealing with unit

[Issue 18143] in/out contracts should be implicitly const

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18143 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org

[Issue 18143] New: in/out contracts should be implicitly const

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18143 Issue ID: 18143 Summary: in/out contracts should be implicitly const Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: What could this OptLink Error mean?

2017-12-29 Thread user1234 via Digitalmars-d-learn
On Friday, 29 December 2017 at 16:11:20 UTC, Dukc wrote: I was building one example of DLangUi (dub build --build-mode=allAtOnce --build=debuglinker) and it did compile but the linker started to complain. I did notice it seemed to be related to the standard library, so I updated it and

[Issue 12901] Assignments to outside members in `in`/`out` contracts shouldn't be allowed

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12901 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f8b524688ff2a762b8427d1c673dfb1c53c806f7 Re-fix Issue 12901 in/out contracts on struct constructor

[Issue 12901] Assignments to outside members in `in`/`out` contracts shouldn't be allowed

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12901 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: D downloads

2017-12-29 Thread codephantom via Digitalmars-d
On Saturday, 23 December 2017 at 21:04:52 UTC, Laeeth Isharc wrote: http://erdani.com/d/downloads.daily.png Bad data, one off spike, or something else? https://successfulsoftware.net/2015/05/14/the-mystery-of-the-chinese-downloads/

Re: What do you want to see for a mature DLang?

2017-12-29 Thread codephantom via Digitalmars-d
On Friday, 29 December 2017 at 23:32:45 UTC, Walter Bright wrote: ... 3. Ideally there'd be a url one could click on, not an error code. No URLs! (unless they point to 'local' documentation). I do not want to become even more dependent on having access to the internet, in order to

Re: D needs to publicize its speed of compilation

2017-12-29 Thread H. S. Teoh via Digitalmars-d
On Fri, Dec 29, 2017 at 03:49:07PM -0700, Jonathan M Davis via Digitalmars-d wrote: [...] > It also depends on your personality. Personally, while I like builds > being near instantaneous when dealing with unit tests, if they take a > few seconds, it's not a big deal, but I know folks who get

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/29/2017 1:57 PM, rjframe wrote: I noticed the Rust error has a code, too (E0308); if better error messages are too difficult to implement, assigning codes to error types and documenting them on the wiki could be helpful. Once you've dealt with an error type, the messages aren't that bad,

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/29/2017 3:15 PM, Muld wrote: Bugzilla is a huge mess tbh, creating a request in bugzilla won't lead anywhere. Fixes for bugzilla issues are posted on github nearly every day. It's so bad honestly it'd probably be less work just to create a new bugzilla and port any relevant entries

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/29/2017 2:31 PM, Adam D. Ruppe wrote: On Friday, 29 December 2017 at 21:30:35 UTC, Walter Bright wrote: This is not actionable. What is actionable is filing bugzilla enhancement requests with specific examples. I've done better than that: I've written pull requests.

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Muld via Digitalmars-d
On Friday, 29 December 2017 at 21:30:35 UTC, Walter Bright wrote: On 12/29/2017 9:29 AM, Adam D. Ruppe wrote: On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote:    -- Better compiler errors, better compiler errors, better compiler errors. This is the only thing I greatly care about

Re: Slices and Dynamic Arrays

2017-12-29 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, December 29, 2017 22:32:01 Tony via Digitalmars-d-learn wrote: > In DLang Tour:Arrays > https://tour.dlang.org/tour/en/basics/arrays > > there is: > --- > int size = 8; // run-time variable > int[] arr = new int[size]; > > The type of arr is

Re: D needs to publicize its speed of compilation

2017-12-29 Thread Atila Neves via Digitalmars-d
On Thursday, 28 December 2017 at 21:58:07 UTC, Walter Bright wrote: On 12/28/2017 5:22 AM, Atila Neves wrote: On Thursday, 28 December 2017 at 07:21:28 UTC, Walter Bright wrote: On 12/27/2017 1:23 PM, Atila Neves wrote: However, my experience has been that D has fast builds from scratch, but

Re: Slices and Dynamic Arrays

2017-12-29 Thread Muld via Digitalmars-d-learn
On Friday, 29 December 2017 at 22:32:01 UTC, Tony wrote: In DLang Tour:Arrays https://tour.dlang.org/tour/en/basics/arrays there is: --- int size = 8; // run-time variable int[] arr = new int[size]; The type of arr is int[], which is a slice.

Re: D needs to publicize its speed of compilation

2017-12-29 Thread Jonathan M Davis via Digitalmars-d
On Friday, December 29, 2017 22:37:56 I Love Stuffing via Digitalmars-d wrote: > To be fair, you are basing this off C++. C++ has an obnoxiously > slow build system at times and everyone knows this, have known > this, and have even addressed some parts of it. Yet they still > use it. I don't

Re: Slices and Dynamic Arrays

2017-12-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 29 December 2017 at 22:32:01 UTC, Tony wrote: Based on those two web pages it appears that the name for a dynamic array in D is "slice". That is, anytime you have a dynamic array (even a null reference version) it is called a slice. Is that correct? Not exactly, but

Re: D needs to publicize its speed of compilation

2017-12-29 Thread I Love Stuffing via Digitalmars-d
On Friday, 22 December 2017 at 10:06:18 UTC, Joakim wrote: This one of the main strengths of D, it is what Walter focuses on, yet I have seen almost nothing on the D blog talking about this. What brought me to emphasize this today is this recent post about how long it takes to compile the

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 29 December 2017 at 21:30:35 UTC, Walter Bright wrote: This is not actionable. What is actionable is filing bugzilla enhancement requests with specific examples. I've done better than that: I've written pull requests. https://github.com/dlang/dmd/pull/6806 There's also existing

Slices and Dynamic Arrays

2017-12-29 Thread Tony via Digitalmars-d-learn
In DLang Tour:Arrays https://tour.dlang.org/tour/en/basics/arrays there is: --- int size = 8; // run-time variable int[] arr = new int[size]; The type of arr is int[], which is a slice. --- In "D Slices"

Re: D needs to publicize its speed of compilation

2017-12-29 Thread Atila Neves via Digitalmars-d
On Thursday, 28 December 2017 at 13:26:55 UTC, Seb wrote: On Thursday, 28 December 2017 at 13:20:34 UTC, Atila Neves wrote: On Thursday, 28 December 2017 at 07:05:25 UTC, Joakim wrote: On Sunday, 24 December 2017 at 22:55:12 UTC, aberba wrote: On Friday, 22 December 2017 at 10:06:18 UTC,

Re: D needs to publicize its speed of compilation

2017-12-29 Thread Atila Neves via Digitalmars-d
On Thursday, 28 December 2017 at 15:54:03 UTC, H. S. Teoh wrote: On Thu, Dec 28, 2017 at 01:22:13PM +, Atila Neves via Digitalmars-d wrote: On Thursday, 28 December 2017 at 07:21:28 UTC, Walter Bright wrote: > On 12/27/2017 1:23 PM, Atila Neves wrote: > > However, my experience has been

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Atila Neves via Digitalmars-d
On Friday, 29 December 2017 at 21:56:26 UTC, Seb wrote: On Friday, 29 December 2017 at 21:34:14 UTC, Walter Bright wrote: On 12/28/2017 11:53 PM, IM wrote: Simple things like these make a big difference. D Lang has been around for a long while now, and hence signs of its maturity has to show

Re: Beta 2.078.0

2017-12-29 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 20 December 2017 at 13:05:33 UTC, Robert burner Schadek wrote: I think https://issues.dlang.org/show_bug.cgi?id=18047 is also fixed in 2.078. For some reasons GH's Bugzilla integration didn't close that issue, now that it's closed our changed.d tool did pick it up.

Re: Article: Finding memory bugs in D code with AddressSanitizer

2017-12-29 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 28 December 2017 at 16:29:49 UTC, Johan Engelen wrote: On Monday, 25 December 2017 at 17:03:37 UTC, Johan Engelen wrote: I've been writing this article since August, and finally found some time to finish it:

[Issue 18084] [REG2.072] tempCString buffer size is unittest-versioned

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18084 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/4873e2f6b3020c8edc18d4037d1f0d01a1ea6dd6 Fix issue 18084 - tempCString type should not change

[Issue 18135] [REG2.078] can't join RegexMatch anymore

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18135 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b221120735b04095a6d4c7702eb9cc6e37aba170 fix Issue 18135 - can't join RegexMatch anymore

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

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18047 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: What do you want to see for a mature DLang?

2017-12-29 Thread I Love Stuffing via Digitalmars-d
On Friday, 29 December 2017 at 09:46:05 UTC, JN wrote: AFAIK Rust doesn't have templates, but generics. Generics usually have much cleaner error messages because they are mostly used for generic functions and classes, meanwhile templates can do that too but much, much more, but when they

Re: Is Nullable supposed to provide Optional semantics?

2017-12-29 Thread vit via Digitalmars-d-learn
On Friday, 29 December 2017 at 21:43:25 UTC, Chris Paulson-Ellis wrote: On Friday, 29 December 2017 at 21:34:27 UTC, vit wrote: use: n = Nullable!Object.init; //doesn't call destroy instead of: n.nullify(); Only nullify() can make isNull return true again. I need that semantic.

[Issue 18141] [REG2.078a] dmd -v no longer prints predefs

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18141 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: What do you want to see for a mature DLang?

2017-12-29 Thread rjframe via Digitalmars-d
On Fri, 29 Dec 2017 13:34:14 -0800, Walter Bright wrote: > On 12/28/2017 11:53 PM, IM wrote: >> Simple things like these make a big difference. D Lang has been around >> for a long while now, and hence signs of its maturity has to show >> everywhere, especially in the compiler, as well as the

[Issue 18141] [REG2.078a] dmd -v no longer prints predefs

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18141 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/6c7df23338994818a304cb7082c647928a23da76 Fix Issue 18141 - [REG2.078a] dmd -v no longer prints predefs

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Seb via Digitalmars-d
On Friday, 29 December 2017 at 21:34:14 UTC, Walter Bright wrote: On 12/28/2017 11:53 PM, IM wrote: Simple things like these make a big difference. D Lang has been around for a long while now, and hence signs of its maturity has to show everywhere, especially in the compiler, as well as the

Re: D Videos

2017-12-29 Thread Arun Chandrasekaran via Digitalmars-d
On Thursday, 28 December 2017 at 14:17:56 UTC, Seb wrote: On Thursday, 28 December 2017 at 14:11:57 UTC, Dave Jones wrote: Just an idea, i think it'd be a good idea to have a page on dlang with links to all the various D related talks / videos. Quite often i watch them as i find them in the

Re: Is Nullable supposed to provide Optional semantics?

2017-12-29 Thread Dukc via Digitalmars-d-learn
On Friday, 29 December 2017 at 21:43:25 UTC, Chris Paulson-Ellis wrote: Only nullify() can make isNull return true again. I need that semantic. Quick idea without much afterthought: instead of Nullable, use pointer to o?

Re: Is Nullable supposed to provide Optional semantics?

2017-12-29 Thread Chris Paulson-Ellis via Digitalmars-d-learn
On Friday, 29 December 2017 at 21:34:27 UTC, vit wrote: use: n = Nullable!Object.init; //doesn't call destroy instead of: n.nullify(); Only nullify() can make isNull return true again. I need that semantic.

Re: Is Nullable supposed to provide Optional semantics?

2017-12-29 Thread vit via Digitalmars-d-learn
On Friday, 29 December 2017 at 20:52:51 UTC, Chris Paulson-Ellis wrote: I've been bitten by trying to use Nullable(T) on class types. Minimal example... [...] use: n = Nullable!Object.init; //doesn't call destroy instead of: n.nullify();

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/28/2017 11:53 PM, IM wrote: Simple things like these make a big difference. D Lang has been around for a long while now, and hence signs of its maturity has to show everywhere, especially in the compiler, as well as the package manager. Diverging from the: file(line): message format

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Walter Bright via Digitalmars-d
On 12/29/2017 9:29 AM, Adam D. Ruppe wrote: On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote:    -- Better compiler errors, better compiler errors, better compiler errors. This is the only thing I greatly care about anymore. Biggest problem D has in real world use. This is not

Is Nullable supposed to provide Optional semantics?

2017-12-29 Thread Chris Paulson-Ellis via Digitalmars-d-learn
I've been bitten by trying to use Nullable(T) on class types. Minimal example... import std.typecons : Nullable; void main() { auto o = new Object(); o.toString(); Nullable!Object n = o; o.toString(); n.nullify(); o.toString(); // SegV! } The SEGV is caused by

Re: How do you safely deal with range.front?

2017-12-29 Thread Dukc via Digitalmars-d-learn
On Friday, 29 December 2017 at 19:38:44 UTC, aliak wrote: So when I'm dealing with ranges, there're a number of times where I get the front of the returned result of a set of operations, but of course there is no front so you get an runtime access error. This could be what you want: auto

Re: How do you safely deal with range.front?

2017-12-29 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, December 29, 2017 19:38:44 aliak via Digitalmars-d-learn wrote: > Hi, > > So when I'm dealing with ranges, there're a number of times where > I get the front of the returned result of a set of operations, > but of course there is no front so you get an runtime access > error. You don't

Re: How do you safely deal with range.front?

2017-12-29 Thread Seb via Digitalmars-d-learn
On Friday, 29 December 2017 at 19:38:44 UTC, aliak wrote: Hi, So when I'm dealing with ranges, there're a number of times where I get the front of the returned result of a set of operations, but of course there is no front so you get an runtime access error. [...] Do you know about the

Re: structs inheriting from and implementing interfaces

2017-12-29 Thread Mengu via Digitalmars-d-learn
On Friday, 29 December 2017 at 13:08:38 UTC, rikki cattermole wrote: On 29/12/2017 12:59 PM, rjframe wrote: On Fri, 29 Dec 2017 12:39:25 +, Nicholas Wilson wrote: [...] I've actually thought about doing this to get rid of a bunch of if qualifiers in my function declarations. `static

How do you safely deal with range.front?

2017-12-29 Thread aliak via Digitalmars-d-learn
Hi, So when I'm dealing with ranges, there're a number of times where I get the front of the returned result of a set of operations, but of course there is no front so you get an runtime access error. In some other languages the concept of "front" or "first" returns a safe referece, or

[Issue 18142] New: checkedint opOpAssign doesn't accept a checkedint

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18142 Issue ID: 18142 Summary: checkedint opOpAssign doesn't accept a checkedint Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

[Issue 12901] Assignments to outside members in `in`/`out` contracts shouldn't be allowed

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12901 greenify changed: What|Removed |Added CC||greeen...@gmail.com

Re: how to localize console and GUI apps in Windows

2017-12-29 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Dec 29, 2017 at 10:35:53AM +, Andrei via Digitalmars-d-learn wrote: > On Thursday, 28 December 2017 at 18:45:39 UTC, H. S. Teoh wrote: > > On Thu, Dec 28, 2017 at 05:56:32PM +, Andrei via Digitalmars-d-learn > > wrote: > > ... > > The string / wstring / dstring types in D are

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Neia Neutuladh via Digitalmars-d
On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote: -- Better compiler errors, better compiler errors, better compiler errors. Very much so. I actually made a list a day or two ago. Some of it is more speculative than concrete, though: * unicode categories to determine what can be an

Re: Difference in reduce in std and mir

2017-12-29 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Tuesday, 26 December 2017 at 16:12:07 UTC, Seb wrote: On Tuesday, 26 December 2017 at 15:56:19 UTC, Vino wrote: Hi All, What is the difference between std.algorithm.reduce and mir.ndslice.algorithm.reduce. From, Vino.B Mir's reduce works on Slices whereas Phobos's reduce works on

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote: -- Better compiler errors, better compiler errors, better compiler errors. This is the only thing I greatly care about anymore. Biggest problem D has in real world use.

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Arek via Digitalmars-d
On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote: I will start: cut... Simple things like these make a big difference. D Lang has been around for a long while now, and hence signs of its maturity has to show everywhere, especially in the compiler, as well as the package manager. I

What could this OptLink Error mean?

2017-12-29 Thread Dukc via Digitalmars-d-learn
I was building one example of DLangUi (dub build --build-mode=allAtOnce --build=debuglinker) and it did compile but the linker started to complain. I did notice it seemed to be related to the standard library, so I updated it and DRuntime to the lastest master, rebuilt them and replaced

[Issue 18116] to!wchar([string, dstring]), and to!char([wstring, dstring]) don't compile

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18116 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/9968b61d07fe996cc0ee8175f1eb7a9fe0c1a278 Fixes issue 18116

[Issue 18116] to!wchar([string, dstring]), and to!char([wstring, dstring]) don't compile

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18116 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Digital mars QT interface?

2017-12-29 Thread dark777 via Digitalmars-d-learn
I would like to know if there is any repository that uses QT to create QT creator-style programs with buttons and combobox cute?

[Issue 18141] New: [REG2.078a] dmd -v no longer prints predefs

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18141 Issue ID: 18141 Summary: [REG2.078a] dmd -v no longer prints predefs Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: regression

[Issue 18141] [REG2.078a] dmd -v no longer prints predefs

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18141 Seb changed: What|Removed |Added Assignee|nob...@puremagic.com|greensunn...@gmail.com --

Re: DMD Windows 64bit target - how to setup the environment?

2017-12-29 Thread realhet via Digitalmars-d-learn
Thank You for fast help! I just reply late because I wanted to try out many things. With Benjamin's list it was indeed easy to set up the environment. I also installed LDC and it worked without problems too. Made some tests about sse vectorization and it turned out that I'm in love with LDC

[Issue 18015] [Reg 2.075] link failure unknown [0] section `' in group [.group]

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18015 Ludovit Lucenic changed: What|Removed |Added Keywords||link-failure ---

Re: structs inheriting from and implementing interfaces

2017-12-29 Thread Random D user via Digitalmars-d-learn
On Friday, 29 December 2017 at 12:03:59 UTC, Mike Franklin wrote: In C#, structs can inherit from and implement interfaces. Is that simply because it hasn't been implemented or suggested yet for D, or was there a deliberate design decision? Thanks for your insight, Mike I think it's

Re: VisualD temp D variables showing up

2017-12-29 Thread Amorphorious via Digitalmars-d-debugger
Also, when I put a BP on an if statement it is not hit and Visual D says that no symbols have been loaded for the document. If I put the BP on a line that isn't an if statement, it hits the BP fine.

[Issue 18135] [REG2.078] can't join RegexMatch anymore

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18135 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18135] [REG2.078] can't join RegexMatch anymore

2017-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18135 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b221120735b04095a6d4c7702eb9cc6e37aba170 fix Issue 18135 - can't join RegexMatch anymore - fix

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Satoshi via Digitalmars-d
On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote: I will start: -- Better compiler errors, better compiler errors, better compiler errors. I really wish that the compiler errors could receive some refinement. Mostly it feels like some error text just being thrown at me. It needs

Re: What do you want to see for a mature DLang?

2017-12-29 Thread Basile B. via Digitalmars-d
On Friday, 29 December 2017 at 07:53:51 UTC, IM wrote: I will start: [...] Simple things like these make a big difference. D Lang has been around for a long while now, and hence signs of its maturity has to show everywhere, especially in the compiler, as well as the package manager. I

Re: structs inheriting from and implementing interfaces

2017-12-29 Thread Basile B. via Digitalmars-d-learn
On Friday, 29 December 2017 at 13:08:38 UTC, rikki cattermole wrote: On 29/12/2017 12:59 PM, rjframe wrote: On Fri, 29 Dec 2017 12:39:25 +, Nicholas Wilson wrote: On Friday, 29 December 2017 at 12:03:59 UTC, Mike Franklin wrote: The problem is that interfaces are a runtime thing (e.g.

Re: structs inheriting from and implementing interfaces

2017-12-29 Thread rikki cattermole via Digitalmars-d-learn
On 29/12/2017 12:59 PM, rjframe wrote: On Fri, 29 Dec 2017 12:39:25 +, Nicholas Wilson wrote: On Friday, 29 December 2017 at 12:03:59 UTC, Mike Franklin wrote: The problem is that interfaces are a runtime thing (e.g. you can cast a class to an interface) structs implement compile time

Re: structs inheriting from and implementing interfaces

2017-12-29 Thread Basile B. via Digitalmars-d-learn
On Friday, 29 December 2017 at 12:03:59 UTC, Mike Franklin wrote: In C#, structs can inherit from and implement interfaces. using System; interface IPrint { void Print(); } struct MyStruct : IPrint { public void Print() { Console.WriteLine(ToString()); } } public

  1   2   >