Re: Should r.length of type ulong be supported on 32-bit systems?

2016-10-01 Thread Marco Leise via Digitalmars-d
Am Sat, 1 Oct 2016 01:04:01 -0400 schrieb Andrei Alexandrescu : > On 09/30/2016 11:58 PM, Walter Bright wrote: > > On 9/30/2016 7:31 PM, Andrei Alexandrescu wrote: > >> https://github.com/dlang/phobos/pull/4827 still allows that but > >> specifies that > >> phobos

Re: std.math.isPowerOf2

2016-10-01 Thread Manu via Digitalmars-d
On 2 October 2016 at 13:46, Andrei Alexandrescu via Digitalmars-d wrote: > On 10/01/2016 11:05 PM, Manu via Digitalmars-d wrote: >> >> Unsigned case is: >> return (x & -x) > (x - 1); >> >> Wouldn't this be better: >> return (sz & (sz-1)) == 0; >> >> I also don't

Re: debugging mixins

2016-10-01 Thread Stefan Koch via Digitalmars-d
On Sunday, 2 October 2016 at 03:36:31 UTC, Manu wrote: This comes up a lot. As far as I know, it's not solved. What shall we do? I feel like a simple solution would be to have the compiler emit a _mixin.d file populated with all the mixin expansions beside the .obj files, and have the

Re: std.math.isPowerOf2

2016-10-01 Thread Walter Bright via Digitalmars-d
On 10/1/2016 8:46 PM, Andrei Alexandrescu wrote: On 10/01/2016 11:05 PM, Manu via Digitalmars-d wrote: Unsigned case is: return (x & -x) > (x - 1); Wouldn't this be better: return (sz & (sz-1)) == 0; I also don't understand the integer promotion and recursive call in the integer case. Can

[Issue 3960] Unused local variables not reported

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3960 Marco Leise changed: What|Removed |Added Resolution|FIXED |WONTFIX --- Comment #36

Re: std.math.isPowerOf2

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 11:05 PM, Manu via Digitalmars-d wrote: Unsigned case is: return (x & -x) > (x - 1); Wouldn't this be better: return (sz & (sz-1)) == 0; I also don't understand the integer promotion and recursive call in the integer case. Can someone explain how the std.math implementation

Re: std.math.isPowerOf2

2016-10-01 Thread safety0ff via Digitalmars-d
On Sunday, 2 October 2016 at 03:05:37 UTC, Manu wrote: Unsigned case is: return (x & -x) > (x - 1); Wouldn't this be better: return (sz & (sz-1)) == 0; https://forum.dlang.org/post/nfkaag$2d6u$1...@digitalmars.com

debugging mixins

2016-10-01 Thread Manu via Digitalmars-d
This comes up a lot. As far as I know, it's not solved. What shall we do? I feel like a simple solution would be to have the compiler emit a _mixin.d file populated with all the mixin expansions beside the .obj files, and have the debuginfo refer to that fabricated source file? It might look a

std.math.isPowerOf2

2016-10-01 Thread Manu via Digitalmars-d
Unsigned case is: return (x & -x) > (x - 1); Wouldn't this be better: return (sz & (sz-1)) == 0; I also don't understand the integer promotion and recursive call in the integer case. Can someone explain how the std.math implementation is ideal?

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 01, 2016 19:51:05 Dicebot via Digitalmars-d wrote: > I wonder if Phobos provides any > cross-platform way to do so - I remember some PR on topic but in > current documentation there seems to be nothing useful mentioned, We had it, and it got yanked, because there was

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 2 October 2016 at 01:23:18 UTC, Andrei Alexandrescu wrote: There, we list the full content of /tmp, recursively. That's not quite the right thing to do. Not only the run time is arbitrarily slow, but the test may file if certain subdirs are inaccessible. Vladimir, maybe I can

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 06:08 PM, Vladimir Panteleev wrote: On Saturday, 1 October 2016 at 21:25:56 UTC, Andrei Alexandrescu wrote: Interesting, thanks. Seems like the most robust thing to do is to not use /tmp/ after all. That will cause performance regressions on systems that mount /tmp in RAM.

[Issue 16571] New: Unittests should not list /tmp/ recursively

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16571 Issue ID: 16571 Summary: Unittests should not list /tmp/ recursively Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: [OT] google- and github-fu: how to search for a specific PR?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 07:15 PM, Vladimir Panteleev wrote: On Saturday, 1 October 2016 at 12:33:14 UTC, Andrei Alexandrescu wrote: Are there any shortcuts? Since the other answers have the fish, so I'll throw in (another) fishing rod: 1. Use `git blame` to find the commit you wish to find the PR of.

Re: Beta 2.072.0-b1

2016-10-01 Thread Basile B. via Digitalmars-d-announce
On Saturday, 1 October 2016 at 20:57:17 UTC, Martin Nowak wrote: First beta for the 2.072.0 release. This release comes with many new phobos features, native TLS support on OSX, the first bunch of @safety enhancements (try -transition=safe), and a few smaller language and compiler additions.

Re: Beta 2.072.0-b1

2016-10-01 Thread Martin Nowak via Digitalmars-d-announce
On Saturday, 1 October 2016 at 23:27:57 UTC, Daniel Kozak wrote: Nice work. One small issue link to Unrestricted Unions It does work, there are simply no details. Needs a bit more explanation though

Re: Beta 2.072.0-b1

2016-10-01 Thread Daniel Kozak via Digitalmars-d-announce
Nice work. One small issue link to Unrestricted Unions http://dlang.org/changelog/2.072.0.html#unrestricted_unions does not work Dne 1.10.2016 v 22:57 Martin Nowak via Digitalmars-d-announce napsal(a): First beta for the 2.072.0

Re: [OT] google- and github-fu: how to search for a specific PR?

2016-10-01 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 1 October 2016 at 12:33:14 UTC, Andrei Alexandrescu wrote: Are there any shortcuts? Since the other answers have the fish, so I'll throw in (another) fishing rod: 1. Use `git blame` to find the commit you wish to find the PR of. (Since you use Emacs, magit's magit-blame is

[Issue 16570] New: [REG 2.072.0-b1] implicit conversion from int to enum fails when enum type is missing

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16570 Issue ID: 16570 Summary: [REG 2.072.0-b1] implicit conversion from int to enum fails when enum type is missing Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 16568] unittesting floods /tmp/ with files of the form .dmd-run-test.0V0KUY

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16568 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 16568] unittesting floods /tmp/ with files of the form .dmd-run-test.0V0KUY

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16568 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 16568] unittesting floods /tmp/ with files of the form .dmd-run-test.0V0KUY

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16568 Vladimir Panteleev changed: What|Removed |Added Keywords||pull --

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 1 October 2016 at 21:25:56 UTC, Andrei Alexandrescu wrote: Interesting, thanks. Seems like the most robust thing to do is to not use /tmp/ after all. That will cause performance regressions on systems that mount /tmp in RAM.

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 1 October 2016 at 17:35:29 UTC, Andrei Alexandrescu wrote: I think /tmp/ is mounted per user so we should be good. I have never seen this. In fact, I'm not familiar with any mechanisms of "per-user" mounts on POSIX systems. The general practice of creating files in /tmp/ is to

Re: Explicit casting of enum -- intentional restriction?

2016-10-01 Thread Namespace via Digitalmars-d-learn
The Code below still works, so I guess it's some problem with the constraint of "exists". import std.stdio; enum Foo { A = "B" } void test(string a) { } void main() { test(Foo.A); Foo.A.test(); }

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 05:00 PM, Guillaume Boucher wrote: On Saturday, 1 October 2016 at 19:51:05 UTC, Dicebot wrote: I think that is OK but only if actual file inside the dir is created with `mktemp --tmpdir=/tmp/.dmd-test-run/` (or using a similar technique). This is not sufficient. Any user can

Re: Beta 2.072.0-b1

2016-10-01 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Saturday, 1 October 2016 at 20:57:17 UTC, Martin Nowak wrote: First beta for the 2.072.0 release. This release comes with many new phobos features, native TLS support on OSX, the first bunch of @safety enhancements (try -transition=safe), and a few smaller language and compiler additions.

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Guillaume Boucher via Digitalmars-d
On Saturday, 1 October 2016 at 19:51:05 UTC, Dicebot wrote: I think that is OK but only if actual file inside the dir is created with `mktemp --tmpdir=/tmp/.dmd-test-run/` (or using a similar technique). This is not sufficient. Any user can create a symlink from /tmp/.dmd-test-run/ to e.g.

Beta 2.072.0-b1

2016-10-01 Thread Martin Nowak via Digitalmars-d-announce
First beta for the 2.072.0 release. This release comes with many new phobos features, native TLS support on OSX, the first bunch of @safety enhancements (try -transition=safe), and a few smaller language and compiler additions. This is also the first dmd release to include dub.

Explicit casting of enum -- intentional restriction?

2016-10-01 Thread rcorre via Digitalmars-d-learn
I just tried to compile an old project and the following failed: --- enum Paths : string { bitmapDir = "content/image", fontDir = "content/font", soundDir = "content/sound", ... if (Paths.preferences.exists) ... --- It turns out members of Paths are no longer

Re: The worst Phobos template (in binderoo)

2016-10-01 Thread Stefan Koch via Digitalmars-d
On Saturday, 1 October 2016 at 19:54:13 UTC, Dicebot wrote: On Saturday, 1 October 2016 at 15:06:44 UTC, Stefan Koch wrote: The problem is the default template parameter Flag!"unsafe", because fqn makes it into "cast(Flag)". Getting this right is a bit tricky. Isn't it a problem with library

Re: The worst Phobos template (in binderoo)

2016-10-01 Thread Dicebot via Digitalmars-d
On Saturday, 1 October 2016 at 15:06:44 UTC, Stefan Koch wrote: On Saturday, 1 October 2016 at 10:19:21 UTC, Dicebot wrote: On 09/29/2016 07:02 PM, David Nadlinger wrote: [...] What are the issues with fullyQualifiedName in that context? I mean other than Voldemort types of course. I'd

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Dicebot via Digitalmars-d
On Saturday, 1 October 2016 at 19:32:08 UTC, Andrei Alexandrescu wrote: Not like this is real security concern in dmd case but guidelines like "don't make /tmp/ path predictable" exist exactly so that one can have simple safe default and not worry about possibilities. This may be a

[Issue 16291] phobosinit never gets called (EncodingScheme.create fails)

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16291 Martin Nowak changed: What|Removed |Added Summary|phobosinit never gets |phobosinit never gets

Re: Anyone relying on signaling NaNs?

2016-10-01 Thread Ilya Yaroshenko via Digitalmars-d
On Saturday, 1 October 2016 at 19:10:47 UTC, Martin Nowak wrote: Just tried to fix the float/double initialization w/ signaling NaNs [¹], but it seems we can't reliably do that for all backends/architectures. Any additional move of float might convert SNaNs to QNaNs (quiet NaNs). This has also

[Issue 16291] phobosinit never gets called

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16291 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 03:29 PM, Dicebot wrote: On Saturday, 1 October 2016 at 18:24:07 UTC, Andrei Alexandrescu wrote: Granted, no contest. Seems to me we could be a better denizen of said junkyard. What I noticed other apps do is create one directory in /tmp and then place their junk in there. --

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Dicebot via Digitalmars-d
On Saturday, 1 October 2016 at 18:24:07 UTC, Andrei Alexandrescu wrote: Granted, no contest. Seems to me we could be a better denizen of said junkyard. What I noticed other apps do is create one directory in /tmp and then place their junk in there. -- Andrei Yeah, it is both common and

Anyone relying on signaling NaNs?

2016-10-01 Thread Martin Nowak via Digitalmars-d
Just tried to fix the float/double initialization w/ signaling NaNs [¹], but it seems we can't reliably do that for all backends/architectures. Any additional move of float might convert SNaNs to QNaNs (quiet NaNs). This has also been the finding of other people [²][³]. The biggest problem w/ the

Re: How to make rsplit (like in Python) in D

2016-10-01 Thread pineapple via Digitalmars-d-learn
On Saturday, 1 October 2016 at 17:55:08 UTC, Uranuz wrote: On Saturday, 1 October 2016 at 17:32:59 UTC, Uranuz wrote: On Saturday, 1 October 2016 at 17:23:16 UTC, Uranuz wrote: [...] But these example fails. Oops. Looks like a bug( import std.stdio; import std.algorithm; import std.range;

[Issue 9813] Signalling NaN initialization does not always work correctly on x86

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9813 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #6

Re: How can I use heapify in @safe code?

2016-10-01 Thread Burt via Digitalmars-d-learn
On Saturday, 1 October 2016 at 18:36:54 UTC, klmp wrote: On Saturday, 1 October 2016 at 16:59:18 UTC, Burt wrote: [...] It tries too but "heapify" uses the struct "BinaryHeap" that is not safe at all. (either not annotated or @safe not applicable because of what it uses in intern: @system

Re: How can I use heapify in @safe code?

2016-10-01 Thread klmp via Digitalmars-d-learn
On Saturday, 1 October 2016 at 16:59:18 UTC, Burt wrote: Hi, I'd like to use a binary heap from @safe code. I thought @safe is transitive It tries too but "heapify" uses the struct "BinaryHeap" that is not safe at all. (either not annotated or @safe not applicable because of what it uses in

Re: How to make rsplit (like in Python) in D

2016-10-01 Thread TheFlyingFiddle via Digitalmars-d-learn
On Saturday, 1 October 2016 at 16:45:11 UTC, Uranuz wrote: How to make rsplit (like in Python) in D without need for extra allocation using standard library? And why there is no algorithms (or parameter in existing algorithms) to process range from the back. Is `back` and `popBack` somehow

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 01:48 PM, Dicebot wrote: On Saturday, 1 October 2016 at 17:45:30 UTC, Dicebot wrote: On Saturday, 1 October 2016 at 17:35:29 UTC, Andrei Alexandrescu wrote: I think /tmp/ is mounted per user so we should be good. Anyhow... care to send a PR upstream? -- Andrei You can't make

Re: How to make rsplit (like in Python) in D

2016-10-01 Thread cym13 via Digitalmars-d-learn
On Saturday, 1 October 2016 at 17:23:16 UTC, Uranuz wrote: On Saturday, 1 October 2016 at 16:45:11 UTC, Uranuz wrote: How to make rsplit (like in Python) in D without need for extra allocation using standard library? And why there is no algorithms (or parameter in existing algorithms) to

[Issue 16569] Assertion failure on splitter.back on empty string

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16569 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: How to make rsplit (like in Python) in D

2016-10-01 Thread Uranuz via Digitalmars-d-learn
On Saturday, 1 October 2016 at 17:32:59 UTC, Uranuz wrote: On Saturday, 1 October 2016 at 17:23:16 UTC, Uranuz wrote: [...] But these example fails. Oops. Looks like a bug( import std.stdio; import std.algorithm; import std.range; import std.string; [...] I created bug report on this:

[Issue 16569] New: Assertion failure on splitter.back on empty string

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16569 Issue ID: 16569 Summary: Assertion failure on splitter.back on empty string Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: Overloading relational operators separately; thoughts?

2016-10-01 Thread Russel Winder via Digitalmars-d
On Sat, 2016-10-01 at 14:55 +, Chris Wright via Digitalmars-d wrote: > Groovy doesn't allow you to overload comparison operators > individually,  > and probably most JVM languages likewise. This is to retain > compatibility  > with Java, which has `.compareTo()` instead of `isLessThan()` etc.

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Dicebot via Digitalmars-d
On Saturday, 1 October 2016 at 17:45:30 UTC, Dicebot wrote: On Saturday, 1 October 2016 at 17:35:29 UTC, Andrei Alexandrescu wrote: I think /tmp/ is mounted per user so we should be good. Anyhow... care to send a PR upstream? -- Andrei You can't make any assumptions about how /tmp/ is

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Dicebot via Digitalmars-d
On Saturday, 1 October 2016 at 17:35:29 UTC, Andrei Alexandrescu wrote: I think /tmp/ is mounted per user so we should be good. Anyhow... care to send a PR upstream? -- Andrei You can't make any assumptions about how /tmp/ is mounted, it is completely up to distro/administrator.

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
On 10/01/2016 12:58 PM, Guillaume Boucher wrote: On Saturday, 1 October 2016 at 16:46:56 UTC, Guillaume Boucher wrote: On Saturday, 1 October 2016 at 16:43:29 UTC, Stefan Koch wrote: On Saturday, 1 October 2016 at 16:05:25 UTC, Andrei Alexandrescu wrote:

Re: How to make rsplit (like in Python) in D

2016-10-01 Thread Uranuz via Digitalmars-d-learn
On Saturday, 1 October 2016 at 17:23:16 UTC, Uranuz wrote: On Saturday, 1 October 2016 at 16:45:11 UTC, Uranuz wrote: How to make rsplit (like in Python) in D without need for extra allocation using standard library? And why there is no algorithms (or parameter in existing algorithms) to

Re: How to make rsplit (like in Python) in D

2016-10-01 Thread Uranuz via Digitalmars-d-learn
On Saturday, 1 October 2016 at 16:45:11 UTC, Uranuz wrote: How to make rsplit (like in Python) in D without need for extra allocation using standard library? And why there is no algorithms (or parameter in existing algorithms) to process range from the back. Is `back` and `popBack` somehow

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Guillaume Boucher via Digitalmars-d
On Saturday, 1 October 2016 at 16:46:56 UTC, Guillaume Boucher wrote: On Saturday, 1 October 2016 at 16:43:29 UTC, Stefan Koch wrote: On Saturday, 1 October 2016 at 16:05:25 UTC, Andrei Alexandrescu wrote: https://issues.dlang.org/show_bug.cgi?id=16568 TIA! -- Andrei Please post some

How can I use heapify in @safe code?

2016-10-01 Thread Burt via Digitalmars-d-learn
Hi, I'd like to use a binary heap from @safe code. I thought @safe is transitive but the following example does not compile: import std.container.binaryheap; @safe // This makes things fail. unittest { // Test range interface. import std.algorithm.comparison : equal;

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Guillaume Boucher via Digitalmars-d
On Saturday, 1 October 2016 at 16:43:29 UTC, Stefan Koch wrote: On Saturday, 1 October 2016 at 16:05:25 UTC, Andrei Alexandrescu wrote: https://issues.dlang.org/show_bug.cgi?id=16568 TIA! -- Andrei Please post some code/instructions to reproduce the issue. The fix for this will be quite

How to make rsplit (like in Python) in D

2016-10-01 Thread Uranuz via Digitalmars-d-learn
How to make rsplit (like in Python) in D without need for extra allocation using standard library? And why there is no algorithms (or parameter in existing algorithms) to process range from the back. Is `back` and `popBack` somehow worse than `front` and `popFront`. I've tried to write

Re: Anyone has time for a unittesting issue?

2016-10-01 Thread Stefan Koch via Digitalmars-d
On Saturday, 1 October 2016 at 16:05:25 UTC, Andrei Alexandrescu wrote: https://issues.dlang.org/show_bug.cgi?id=16568 TIA! -- Andrei Please post some code/instructions to reproduce the issue. The fix for this will be quite simple create a directory with the DDMMYY timestamp as directory

Re: The XML and JSON library

2016-10-01 Thread cym13 via Digitalmars-d
On Saturday, 1 October 2016 at 13:43:02 UTC, yawniek wrote: On Friday, 30 September 2016 at 09:41:55 UTC, Chris wrote: [...] its definitly 100% usabe, we use it in production. and it has a much easier API than all the other libs. we created it especially for the purpose of easy (and blazing

Anyone has time for a unittesting issue?

2016-10-01 Thread Andrei Alexandrescu via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=16568 TIA! -- Andrei

[Issue 16568] New: unittesting floods /tmp/ with files of the form .dmd-run-test.0V0KUY

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16568 Issue ID: 16568 Summary: unittesting floods /tmp/ with files of the form .dmd-run-test.0V0KUY Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 3657] No lexical scope for local variables in debug info

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3657 --- Comment #17 from Manu --- Thank god! --

Re: Overloading relational operators separately; thoughts?

2016-10-01 Thread Minty Fresh via Digitalmars-d
On Friday, 30 September 2016 at 23:31:19 UTC, Sai wrote: Genuine question: In the post Java languages, how many languages allowed unrestricted operator overloading and did that cause any similar mess? Thanks in advance for any answers. Although there maybe a bit of bias here, but I'd say

[Issue 3657] No lexical scope for local variables in debug info

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3657 --- Comment #18 from Manu --- Only 7 years later ;) --

Re: Overloading relational operators separately; thoughts?

2016-10-01 Thread Minty Fresh via Digitalmars-d
On Friday, 30 September 2016 at 22:38:07 UTC, Walter Bright wrote: On 9/30/2016 1:14 PM, Minty Fresh wrote: Metathesiophobia Repeatedly suggesting people who don't agree with you have mental disorders does not advance your case and is not appreciated here. Metathesiophobia is not a mental

Re: Overloading relational operators separately; thoughts?

2016-10-01 Thread Chris Wright via Digitalmars-d
On Fri, 30 Sep 2016 19:33:33 +, pineapple wrote: > How many people have to state it how many times in how many different > ways before it gets through? These are stupid goals. They reflect > intention that has no basis in reason, that has no basis in reality, > that is a blindly-enforced

Re: The worst Phobos template (in binderoo)

2016-10-01 Thread Stefan Koch via Digitalmars-d
On Saturday, 1 October 2016 at 10:19:21 UTC, Dicebot wrote: On 09/29/2016 07:02 PM, David Nadlinger wrote: [...] What are the issues with fullyQualifiedName in that context? I mean other than Voldemort types of course. I'd expect `static import` + `fullyQualifiedName` combo to be reasonably

Re: Get date at compile time

2016-10-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 1 October 2016 at 15:00:29 UTC, pineapple wrote: Has there been consideration for adding separate integral tokens for day, month, year, etc? Not that I'm aware of. The purpose of this is more for things like version and help strings (e.g. "MyApp built 1 Oct 2016") than for

Re: Get date at compile time

2016-10-01 Thread pineapple via Digitalmars-d-learn
On Saturday, 1 October 2016 at 14:43:31 UTC, Adam D. Ruppe wrote: On Saturday, 1 October 2016 at 14:41:22 UTC, Andrew wrote: Is there any way to get the system date at compile time. Not exactly, but the special symbol __TIMESTAMP__ gets a string out of the compiler at build time.

Re: Overloading relational operators separately; thoughts?

2016-10-01 Thread Chris Wright via Digitalmars-d
On Fri, 30 Sep 2016 23:31:19 +, Sai wrote: > Genuine question: In the post Java languages, how many languages allowed > unrestricted operator overloading and did that cause any similar mess? Groovy doesn't allow you to overload comparison operators individually, and probably most JVM

Re: Get date at compile time

2016-10-01 Thread Andrew via Digitalmars-d-learn
On Saturday, 1 October 2016 at 14:43:31 UTC, Adam D. Ruppe wrote: On Saturday, 1 October 2016 at 14:41:22 UTC, Andrew wrote: Is there any way to get the system date at compile time. Not exactly, but the special symbol __TIMESTAMP__ gets a string out of the compiler at build time.

Re: Overloading relational operators separately; thoughts?

2016-10-01 Thread pineapple via Digitalmars-d
On Saturday, 1 October 2016 at 07:13:39 UTC, Martin Nowak wrote: The fact that it's not possible to overload < but have to use the ternary opCmp is even a performance problem. All std algorithms only use less as a predicate, leading to lots of unnecessary cycles when e.g. sorting UDTs. On

Re: Get date at compile time

2016-10-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 1 October 2016 at 14:41:22 UTC, Andrew wrote: Is there any way to get the system date at compile time. Not exactly, but the special symbol __TIMESTAMP__ gets a string out of the compiler at build time. http://dlang.org/spec/lex.html#specialtokens

Re: Get date at compile time

2016-10-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/10/2016 3:41 AM, Andrew wrote: Hi, Is there any way to get the system date at compile time. I want something like: static string compileDate = Clock.currTime.toString; but that fails. Thanks very much Andrew https://dlang.org/spec/lex.html#specialtokens

Get date at compile time

2016-10-01 Thread Andrew via Digitalmars-d-learn
Hi, Is there any way to get the system date at compile time. I want something like: static string compileDate = Clock.currTime.toString; but that fails. Thanks very much Andrew

[Issue 6192] std.algorithm.sort performance

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6192 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED

Re: Reinstalled Mac

2016-10-01 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-09-30 16:17, Guillaume Piolat wrote: Confusing. For me it's much more common to want a current DMD compiler and a current LDC compiler. My idea was that this would allow to compile using LDC for a build script that was only designed with DMD in mind. Of course the "ldc2" and

Re: [OT] google- and github-fu: how to search for a specific PR?

2016-10-01 Thread Ilya Yaroshenko via Digitalmars-d
On Saturday, 1 October 2016 at 12:33:14 UTC, Andrei Alexandrescu wrote: I was looking for the PR that changed iota.length and it took me longer than it could have. I googled for Thanks, Andrei See also https://github.com/dlang/phobos/pull/4167

Re: The XML and JSON library

2016-10-01 Thread yawniek via Digitalmars-d
On Friday, 30 September 2016 at 09:41:55 UTC, Chris wrote: On Thursday, 29 September 2016 at 21:32:03 UTC, cym13 wrote: It's not as if it were the only json library though, asdf for example isn't linked to any web framework https://github.com/tamediadigital/asdf I like the name `asdf`

[Issue 16073] Ranges without opDollar not supported

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16073 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a818c7e059bf0e37609c7030b8306daf54909beb [Issue 16073] Fix incorrect uses of random access range

[Issue 16420] Incorrect example in std.getopt docs

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16420 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/2be9e31ef663e28ed71c4b8c8a9271c417297e4f fix issue 16420 - Incorrect example in std.getopt docs

[Issue 16090] popFront generates out-of-bounds array index on corrupted utf-8 strings

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16090 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/e1af1b0b51ea9f29d4ff8076d73c03ba10bfc73c fix issue 16090 - popFront generates out-of-bounds

[Issue 15835] Segfault with typeid call from lazy argument

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15835 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/71294c1f4fdfad8d945b5e423e3c1ed02f30409d fix Issue 15835 - Segfault with typeid call from lazy

[Issue 16413] multiSort doesn't work with @system comparison function

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16413 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/7c7af21d48be942402008e879976f85093a33d37 add test for Issue 16413

[Issue 15607] [ICE] CTFE internal error: bad compare on accessing default-initialized static immutable array of array

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15607 --- Comment #10 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9394bf6e4c017aa9f3008f8bbb3594c04ab5e292 fix

[Issue 15960] SetUnion should filter duplicates

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15960 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/501a1d5f41ec980b2b8c67b7a1fc31b6e65991a9 fix issue 15960 - deprecate setUnion in favor of merge

[Issue 15839] [REG2.071-b1] this.outer is of wrong type

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15839 --- Comment #15 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a117c87a8a9ffbccc78b2c28ae3643b5e5b02794 Fix invalid AST produced by issue 15839 fix

[Issue 16193] opApply() doesn't heap allocate closure

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16193 --- Comment #12 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f7819c898a05d28297024b7355d4ace94f1e4465 fix Issue 16193 - opApply() doesn't heap allocate closure

[Issue 16035] Compiler crashes with inout, templates, and recursion

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16035 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/47687ca95af80bc690994491effa18dd7d186034 fix Issue 16035 - Compiler crashes with inout, templates, and

[Issue 15680] TypeInfo broken for typeof(null)

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15680 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/2da39fd803a4da5a4ca136ee7be6e714ea4af748 fix Issue 15680 - TypeInfo broken for typeof(null)

[Issue 14601] pthread functions aren't marked @nogc

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14601 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/305dfed2fdb82680c9d9756a53f1509ea9454e5d Add @nogc to pthread functions. --

[Issue 15800] std.conv.to!int does not work with ranges of any char type

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15800 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/97edfbea90d72d8f4b6483c091a5b6d0e54db018 Fixed Issue 15800: std.conv.to does not work with

[Issue 15999] Inline assembly incorrect sign extension instead of error

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15999 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/cb1911c64ed7bd988e80ea0b3d0b3a431cfd094e Fix issue 15999 - Inline assembly incorrect sign extension

[Issue 14608] Enum members should be formatted as a table

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14608 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/926b20648ca3b6199ecdc2fbd1d2fdeef45aa280 Upgrade to DDOX 0.15.4 - Fixes the DDOX part of

[Issue 16340] case where version(unittest) results in an invalid warning about a dangling else

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16340 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/183114aca570878105cda76290f87340f925ccf6 Fix issue 16340 - Invalid dangling else warning triggered

[Issue 15306] Delegates with shared context can have unshared aliasing

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15306 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/96136d6e4b1330650ca1fbf5afa57c2758ee18d3 fix Issue 15306 - Delegates with shared context can have

[Issue 9646] std.algorithm.splitter for strings has opportunities for improvement

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9646 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a9d5b8ca779d2dd89c8b49abae385e793d469e5d Improve speed of find for random access needles (strings)

[Issue 14403] DDox: std.algorithm index links are 404

2016-10-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14403 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/8e12e01f388097bc947ef8e7ace1fef5926b3521 Merge pull request #1322 from s-ludwig/master --

  1   2   3   >