[Issue 4945] Bad error message with wrong struct literal

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4945 Infiltrator changed: What|Removed |Added CC|

[Issue 5376] writeln doesn't print immutable lazy sequences

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5376 Infiltrator changed: What|Removed |Added CC|

Re: Real Time-ing

2015-12-09 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 10:00:46 UTC, Andrea Fontana wrote: On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist wrote: So, I mostly do programming that is of run to completion verity. But I have a dream of calling functions periodically. So my question is: What is the

[Issue 5137] Compiler tips

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5137 Infiltrator changed: What|Removed |Added CC|

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Tony via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 07:49:58 UTC, Rory McGuire wrote: On Wed, Dec 9, 2015 at 9:12 AM, Tony via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: [snip] One thing that comes to mind to refute the contention that senescence would be insignificant at the age of

[Issue 5351] Add template mixin for Range Primitives using random access

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5351 Infiltrator changed: What|Removed |Added CC|

[Issue 6133] Improvements to RedBlackTree

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6133 Infiltrator changed: What|Removed |Added Assignee|lt.infiltra...@gmail.com|nob...@puremagic.com

[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428 --- Comment #1 from Ketmar Dark --- p.s. or, maybe, it should only check that flag, but never change. --

Re: DlangIDE update

2015-12-09 Thread default0 via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 05:47:07 UTC, Vadim Lopatin wrote: On Tuesday, 8 December 2015 at 18:18:29 UTC, default0 wrote: Sweet! Glad you're back and working on this! Was wanting to give it a shot, but typing } on my keyboard (german layout, right-alt + 0) did not actually insert the

Re: Advent of Code

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 9 December 2015 at 02:48:31 UTC, Sean Campbell wrote: how is this D speek. it's far shorter and easier to read if you use writefln("floor %s",input.count('(') - input.count(')')); Yes, I don't find chaining of methods all that easy to read either, but you can do less work by

[Issue 4858] Cannot call synchronized method through super

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4858 Infiltrator changed: What|Removed |Added Status|NEW |RESOLVED

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread hnoor0011 via Digitalmars-d
On Monday, 7 December 2015 at 14:22:15 UTC, Karabuta wrote: On Monday, 7 December 2015 at 11:26:27 UTC, Bruno Medeiros _ NOOR

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 10:33:33 UTC, Tony wrote: On Wednesday, 9 December 2015 at 09:27:55 UTC, deadalnix wrote: Later in life, either you were not talented and most likely not made it, or you were talented and busy capitalizing and what you made younger. That's a very good

Re: Real Time-ing

2015-12-09 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 8 December 2015 at 16:40:04 UTC, Taylor Hillegeist wrote: However i seem to get jitter of around 1 ms. Is there anything else i can do to improve? Do you want to get precision better than period of thread switches?

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Tony via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 09:27:55 UTC, deadalnix wrote: I thin what you are looking at here is that youngster are more willing to take risk. When Einstein say that time is relative and ether doesn't exists, that mass and energy is that same thing and that energy exchange is

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread deadalnix via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 07:12:06 UTC, Tony wrote: One thing that comes to mind to refute the contention that senescence would be insignificant at the age of 50 is notable technical achievement. If we were to list the mathematical and scientific discoveries of the past - like

[Issue 4668] Troubles with 'auto ref'

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4668 Infiltrator changed: What|Removed |Added Status|NEW |RESOLVED

Re: Linker error with dmd when trying to generate wxWidgets wrapper on Windows (msys2/mingw-w64)

2015-12-09 Thread Vincent R via Digitalmars-d
On Tuesday, 1 December 2015 at 16:46:21 UTC, Vincent R wrote: On Tuesday, 1 December 2015 at 10:21:11 UTC, Luis wrote: On Monday, 30 November 2015 at 09:23:33 UTC, Vincent R wrote: On Friday, 27 November 2015 at 09:56:10 UTC, Kagamin wrote: The bug report is

Re: Real Time-ing

2015-12-09 Thread Andrea Fontana via Digitalmars-d-learn
On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist wrote: So, I mostly do programming that is of run to completion verity. But I have a dream of calling functions periodically. So my question is: What is the best (most time accurate) way to call a function every n time units?

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Dec 9, 2015 at 11:27 AM, deadalnix via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Wednesday, 9 December 2015 at 07:12:06 UTC, Tony wrote: > >> One thing that comes to mind to refute the contention that senescence >> would be insignificant at the age of 50

[Issue 15429] New: [std.stdio] Broken link in documentation

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15429 Issue ID: 15429 Summary: [std.stdio] Broken link in documentation Product: D Version: D2 Hardware: All URL: http://dlang.org/phobos/ OS: All Status: NEW

[Issue 15427] dynamic casting functions should be available in TypeInfo_Class

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15427 --- Comment #2 from Ketmar Dark --- sample patch: diff --git a/src/object.d b/src/object.d index 097fc5a..6eb9163 100644 --- a/src/object.d +++ b/src/object.d @@ -21,6 +21,8 @@ private { extern (C) Object

[Issue 15401] partialSort should accept two ranges

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15401 --- Comment #3 from Infiltrator --- (In reply to Andrei Alexandrescu from comment #2) > (In reply to Infiltrator from comment #1) > > Once issue 15421 is fixed, this is a simple matter of > > topN(l, r); > >

[Issue 15428] New: __traits(compiles, super()) cause error "multiple constructor calls" later

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428 Issue ID: 15428 Summary: __traits(compiles, super()) cause error "multiple constructor calls" later Product: D Version: D2 Hardware: All OS: All

[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428 Ketmar Dark changed: What|Removed |Added CC|

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 07:49:58 UTC, Rory McGuire wrote: The number of scarily intelligent people aged over 60 is most likely a lot higher than the number of 25 year olds that are so. Its just the way our brains work, your brain optimises its thought processes continually, and

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Tony via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 10:44:35 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 9 December 2015 at 10:33:33 UTC, Tony wrote: On Wednesday, 9 December 2015 at 09:27:55 UTC, deadalnix wrote: Later in life, either you were not talented and most likely not made it, or you were talented and

[Issue 5546] Assigning and initializing structs from functions make more copies than necessary

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5546 Infiltrator changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5993] Strange thread exceptions with DMD 2.053 beta 13th May

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5993 --- Comment #4 from David Bryant --- (In reply to Infiltrator from comment #3) > Is this still an issue in 2.069? IIRC this was fixed and the user code that broke resumed working. I think this bug is a relic now. Apologies for not

[Issue 6187] compiler could use move semantics for appending temporaries to an array

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6187 Infiltrator changed: What|Removed |Added CC|

[Issue 14367] Print warnings by default

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14367 --- Comment #7 from bearophile_h...@eml.cc --- (In reply to Don from comment #5) > Bearophile's comment 4 is something different. It is a real issue. I think > it would best be fixed by removing warnings from the compiler entirely > (which is in

[Issue 5137] Compiler tips

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5137 --- Comment #2 from bearophile_h...@eml.cc --- (In reply to Infiltrator from comment #1) > I don't know whether it's necessary to add another class of compiler > messages. It might be enough to just make these warnings. It would be > helpful

Re: Container Purity

2015-12-09 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 10:47:18 UTC, Nordlöw wrote: that uses std.experimental.container Correction: I mean std.experimental.allocator

[Issue 6218] Stack trace possible improvement

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6218 Infiltrator changed: What|Removed |Added CC|

[Issue 8892] Wrong diagnostic for static array assignment

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8892 --- Comment #11 from Kenji Hara --- *** Issue 4945 has been marked as a duplicate of this issue. *** --

[Issue 4945] Bad error message with wrong struct literal

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4945 Kenji Hara changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5376] writeln doesn't print immutable lazy sequences

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5376 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Container Purity

2015-12-09 Thread Nordlöw via Digitalmars-d-learn
Is it currently possible for a container such as https://github.com/economicmodeling/containers/blob/master/src/containers/dynamicarray.d that uses std.experimental.container to be completely pure? If not can be made to? I wonder because only length(), empty(), front() and back() are tagged

Re: DlangIDE update

2015-12-09 Thread Vadim Lopatin via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 09:18:37 UTC, default0 wrote: One of the things I did manage to try was putting a readln() into the standard hello-world-console-app preset. Turns out that it causes dlangide to hang up because it's not actually possible to have user input (or to configure

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 11:04:46 UTC, Tony wrote: How are you defining "capitalizing"? Climbing the ladder. Many researchers don't want to climb the ladder (e.g. become head of department or even group leader) because it means that they spend 100% of their time on administration

Re: Container Purity

2015-12-09 Thread Kagamin via Digitalmars-d-learn
Allocators usually use global state. Such code is usually treated as impure.

[Issue 5993] Strange thread exceptions with DMD 2.053 beta 13th May

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5993 Infiltrator changed: What|Removed |Added CC|

Re: std.algorithm.remove from array of custom classes?

2015-12-09 Thread Tim K. via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 13:13:36 UTC, BBaz wrote: 1) remove works with an index I guess I did read it wrong. Sorry. Is there a convenience function that allows me to remove an/all object(s) with a certain value from an array or do I need to write one myself? 2) remove does not

Re: std.algorithm.remove from array of custom classes?

2015-12-09 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 13:13:36 UTC, BBaz wrote: 3) opEquals can be 'const' because the method doesn't mutate the state of the object 4) your cast wasn't safe http://dlang.org/phobos/std_algorithm_mutation.html#.remove Maybe something like this works better: ... override

[Issue 5540] Probable bug-hiding redundancies

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5540 Infiltrator changed: What|Removed |Added CC|

[Issue 15422] associative array of nested struct - crash on usage

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15422 Ivan Kazmenko changed: What|Removed |Added CC||ga...@mail.ru

std.algorithm.remove from array of custom classes?

2015-12-09 Thread Tim K. via Digitalmars-d-learn
Hi! I'm trying to remove an item from an array of objects. But I get error messages when compiling (see below) which I do not understand. I figured I had to override opEquals for it to work, but no. How do I get this to work? Regards class A { this(string si, uint ui) { s

Re: std.algorithm.remove from array of custom classes?

2015-12-09 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 13:23:00 UTC, Tim K. wrote: On Wednesday, 9 December 2015 at 13:13:36 UTC, BBaz wrote: 1) remove works with an index I guess I did read it wrong. Sorry. Is there a convenience function that allows me to remove an/all object(s) with a certain value from an

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 10:26:03 UTC, Tony wrote: I'd be swayed if you could link to interviews with older scientists, mathematicians or computer scientists who said their work declined with age because they became disillusioned or they ran into social conditioning issues. They are

[Issue 5669] Constructor calls should be valid inside final switch

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5669 Infiltrator changed: What|Removed |Added CC|

Re: DlangIDE update

2015-12-09 Thread Vadim Lopatin via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 09:18:37 UTC, default0 wrote: I still haven't written much D code and my time is somewhat limited, but if there are simple tasks you need to get done, I would be glad to offer help! It would be great. Will be looking through GitHub and try to set DlangUI etc.

Re: std.algorithm.remove from array of custom classes?

2015-12-09 Thread BBaz via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 13:05:31 UTC, Tim K. wrote: Hi! I'm trying to remove an item from an array of objects. But I get error messages when compiling (see below) which I do not understand. I figured I had to override opEquals for it to work, but no. How do I get this to work?

[Issue 15401] partialSort should accept two ranges

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15401 --- Comment #4 from Andrei Alexandrescu --- (In reply to Infiltrator from comment #3) > (In reply to Andrei Alexandrescu from comment #2) > > (In reply to Infiltrator from comment #1) > > > Once issue 15421 is fixed, this is a

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Bubbasaur via Digitalmars-d
On Monday, 7 December 2015 at 11:26:27 UTC, Bruno Medeiros wroçte: ... With these developments, one asks again, is it wise to spend any more time working and using the Digital Mars backend for D?... The problem are the companies to work, where I live today the main jobs are for C# or Java,

Best Ways to Teach Languages

2015-12-09 Thread Yehor via Digitalmars-d
Every language tutor sometimes encounters a question: what is the best way to teach languages? Every competent tutor asks that question to himself at least once in a while, and unfortunately, not all of them find the answer which is satisfying for them. Also, there are many services for

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread Chris Wright via Digitalmars-d-announce
On Wed, 09 Dec 2015 07:12:06 +, Tony wrote: > If we were to list the mathematical and scientific discoveries of the > past - like calculus and theory of relativity, etc. - how many would > have been done by someone at the age of 50 or older? How many milestones > in computing history were

Re: What complexity have a log(sum) shape?

2015-12-09 Thread Timon Gehr via Digitalmars-d
On 12/09/2015 03:06 AM, Algo wrote: On Wednesday, 9 December 2015 at 01:40:12 UTC, Timon Gehr wrote: On 12/09/2015 02:02 AM, H. S. Teoh via Digitalmars-d wrote: Big-O notation deals with asymptotic behaviour as the variables approach infinity, so behaviour at 'small' values of m and n are

[Issue 15422] associative array of nested struct - crash on usage

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15422 Kenji Hara changed: What|Removed |Added Keywords||wrong-code --- Comment #2

Re: Container Purity

2015-12-09 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 11:46:45 UTC, Kagamin wrote: Allocators usually use global state. Such code is usually treated as impure. What about containers that store their own local allocator? Will DMD infer all members of such containers to be pure if they only access locally

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 9 December 2015 at 14:35:29 UTC, Bubbasaur wrote: The problem are the companies to work, where I live today the main jobs are for C# or Java, I'll not bother to mention of course HTML, JS, PHP... And what's the relation with you asked? Well many companies here have partnership

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 9 December 2015 at 15:29:45 UTC, Ola Fosheim Grøstad wrote: Hm, I kind of agree with Bruno, and I don't really understand why dropping a homegrown backend would not be wise? Oh nevermind, I misread, thought you meant it wouldn't be wise to drop it. I get it now ;-).

[Issue 15422] [REG2.066] associative array of nested struct - crash on usage

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15422 Kenji Hara changed: What|Removed |Added Keywords||pull

Re: DlangIDE update

2015-12-09 Thread Vadim Lopatin via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 15:31:46 UTC, default0 wrote: On Wednesday, 9 December 2015 at 12:10:33 UTC, Vadim Lopatin Thanks for the instructions! I followed them, but when I tried to build in Visual Studio, I got the following error:

[Issue 4668] Troubles with 'auto ref'

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4668 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #2 from

Re: benchmark on binary trees

2015-12-09 Thread visitor via Digitalmars-d-learn
version with apr (like in c version) http://dpaste.dzfl.pl/68c0157225e7 compiled with ldc it's indeed a bit faster on average : real0m1.999s user0m9.810s sys 0m0.148 btw Rust version is even faster than my little bit outdated gcc (4.9) latest try with allocators :

Re: DlangIDE update

2015-12-09 Thread default0 via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 16:26:14 UTC, Vadim Lopatin wrote: On Wednesday, 9 December 2015 at 15:31:46 UTC, default0 wrote: Looks like you have opened obsolete project. Deps should be in dlangui/deps, not in dlangui/.. Probably, you have used old build instructions. See at end of

[Issue 15429] [std.stdio] Broken link in documentation

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15429 ag0ae...@gmail.com changed: What|Removed |Added Keywords||pull CC|

[Issue 15430] New: amdMmx hangs up

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15430 Issue ID: 15430 Summary: amdMmx hangs up Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: regression Priority: P1

Re: DlangIDE update

2015-12-09 Thread default0 via Digitalmars-d-announce
I should mention that the dlangui\.. is some build artifact, too, the files are in dlangui\deps locally (it probably tries to shorten the path name?)

[Issue 15429] [std.stdio] Broken link in documentation

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

[Issue 15429] [std.stdio] Broken link in documentation

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15429 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/e90edec9b6961fb0d78128abc876386b2de9e409 fix issue 15429 -

Re: DlangIDE update

2015-12-09 Thread Georg Wrede via Digitalmars-d-announce
On Tuesday, 8 December 2015 at 18:18:29 UTC, default0 wrote: On Tuesday, 8 December 2015 at 15:58:43 UTC, Vadim Lopatin wrote: Hello, DlangIDE is getting close to usable. DlangIDE is and IDE for D programming language written in D using DlangUI library. Sweet! Glad you're back and working

Re: Reason for 'static struct'

2015-12-09 Thread Jon D via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 21:23:03 UTC, Daniel Kozák wrote: V Wed, 09 Dec 2015 21:10:43 + Jon D via Digitalmars-d-learn napsáno: There is a fair bit of range related code in the standard library structured like: auto MyRange(Range)(Range

Re: std.algorithm.remove from array of custom classes?

2015-12-09 Thread cym13 via Digitalmars-d-learn
On Wednesday, 9 December 2015 at 13:23:00 UTC, Tim K. wrote: On Wednesday, 9 December 2015 at 13:13:36 UTC, BBaz wrote: Is there a convenience function that allows me to remove an/all object(s) with a certain value from an array or do I need to write one myself? Here are some elements of

Re: AA struct hashing bug?

2015-12-09 Thread ketmar via Digitalmars-d-learn
heh. it crashed due to "in" presence. if you'll remove "in", it will work.

Reason for 'static struct'

2015-12-09 Thread Jon D via Digitalmars-d-learn
There is a fair bit of range related code in the standard library structured like: auto MyRange(Range)(Range r) if (isInputRange!Range) { static struct Result { private Range source; // define empty, front, popFront, etc }

Re: Reason for 'static struct'

2015-12-09 Thread Daniel Kozák via Digitalmars-d-learn
V Wed, 09 Dec 2015 21:10:43 + Jon D via Digitalmars-d-learn napsáno: > There is a fair bit of range related code in the standard library > structured like: > > auto MyRange(Range)(Range r) > if (isInputRange!Range) > { >

Re: block file reads and lazy utf-8 decoding

2015-12-09 Thread Jon D via Digitalmars-d-learn
On Thursday, 10 December 2015 at 00:36:27 UTC, Jon D wrote: Question I have is if there is a better way to do this. For example, a different way to construct the lazy 'decodeUTF8Range' rather than writing it out in this fashion. A further thought - The decodeUTF8Range function is basically

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 10 December 2015 at 01:09:30 UTC, Joakim wrote: Let's see, did I miss a reason? These are all the ones I've read on the forum in the past. But the real question is whether it is a strategic good move? Go is the only language now that use its own backend and they loose

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Joakim via Digitalmars-d
On Monday, 7 December 2015 at 11:26:27 UTC, Bruno Medeiros wrote: News article, Microsoft releases Clang with Microsoft CodeGen: http://blogs.msdn.com/b/vcblog/archive/2015/12/04/introducing-clang-with-microsoft-codegen-in-vs-2015-update-1.aspx The interesting bit is at the end: " Clang with

block file reads and lazy utf-8 decoding

2015-12-09 Thread Jon D via Digitalmars-d-learn
I want to combine block reads with lazy conversion of utf-8 characters to dchars. Solution I came with is in the program below. This works fine. Has good performance, etc. Question I have is if there is a better way to do this. For example, a different way to construct the lazy

Re: Moving forward with work on the D language and foundation

2015-12-09 Thread deadalnix via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 11:04:46 UTC, Tony wrote: On Wednesday, 9 December 2015 at 10:44:35 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 9 December 2015 at 10:33:33 UTC, Tony wrote: On Wednesday, 9 December 2015 at 09:27:55 UTC, deadalnix wrote: Later in life, either you were not

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Xinok via Digitalmars-d
On Monday, 7 December 2015 at 11:26:27 UTC, Bruno Medeiros wrote: With these developments, one asks again, is it wise to spend any more time working and using the Digital Mars backend for D?... I asked this very question about a year ago. The thread is here:

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 10 December 2015 at 04:12:20 UTC, Jack Stouffer wrote: I think this illustrates the entire problem. How many years has GCC and LLVM had this? http://clang.llvm.org/docs/MSVCCompatibility.html "Exceptions and SEH: Partial. C++ exceptions (try / catch / throw) and structured

[Issue 15431] New: pragma mangle and mangleof are order dependent

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15431 Issue ID: 15431 Summary: pragma mangle and mangleof are order dependent Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Joakim via Digitalmars-d
On Thursday, 10 December 2015 at 02:22:34 UTC, Ola Fosheim Grøstad wrote: On Thursday, 10 December 2015 at 01:09:30 UTC, Joakim wrote: Let's see, did I miss a reason? These are all the ones I've read on the forum in the past. But the real question is whether it is a strategic good move?

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Jonny via Digitalmars-d
On Thursday, 10 December 2015 at 02:22:34 UTC, Ola Fosheim Grøstad wrote: On Thursday, 10 December 2015 at 01:09:30 UTC, Joakim wrote: Let's see, did I miss a reason? These are all the ones I've read on the forum in the past. But the real question is whether it is a strategic good move? Go

Re: DlangIDE update

2015-12-09 Thread Vadim Lopatin via Digitalmars-d-announce
On Wednesday, 9 December 2015 at 19:24:19 UTC, default0 wrote: I should mention that the dlangui\.. is some build artifact, too, the files are in dlangui\deps locally (it probably tries to shorten the path name?) I found that I forgot to change project import paths for all configurations. I

[Issue 15288] The precedence of the exponentiation operator ^^ is too high.

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15288 Shriramana Sharma changed: What|Removed |Added CC||samj...@gmail.com --

[Issue 5993] Strange thread exceptions with DMD 2.053 beta 13th May

2015-12-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5993 Infiltrator changed: What|Removed |Added Status|NEW |RESOLVED

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Jack Stouffer via Digitalmars-d
On Thursday, 10 December 2015 at 01:09:30 UTC, Joakim wrote: just added DWARF exception-handling support I think this illustrates the entire problem. How many years has GCC and LLVM had this?

Re: Microsoft to contribute to Clang and LLVM project

2015-12-09 Thread Paulo Pinto via Digitalmars-d
On Thursday, 10 December 2015 at 02:22:34 UTC, Ola Fosheim Grøstad wrote: On Thursday, 10 December 2015 at 01:09:30 UTC, Joakim wrote: [...] But the real question is whether it is a strategic good move? Go is the only language now that use its own backend and they loose performance over it,