Re: Help me please fix the bug

2018-05-18 Thread Mike Franklin via Digitalmars-d
On Friday, 18 May 2018 at 05:44:12 UTC, Majestio wrote: == log: == [majestio@freebsd ~/Projects/webapp]$ dub Performing "debug" build using /usr/local/bin/dmd for x86_64.

[Issue 4566] Calling functions in parallel with std.concurrency

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4566 Dmitry Olshansky changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4566] Calling functions in parallel with std.concurrency

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4566 Dmitry Olshansky changed: What|Removed |Added CC|

[Issue 4677] disallow GC via cmd line argument -nogc

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4677 Dmitry Olshansky changed: What|Removed |Added CC|

[Issue 4677] disallow GC via cmd line argument -nogc

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4677 Mike Franklin changed: What|Removed |Added CC||slavo5...@yahoo.com ---

Re: Of possible interest: fast UTF8 validation

2018-05-18 Thread Joakim via Digitalmars-d
On Thursday, 17 May 2018 at 23:11:22 UTC, Ethan wrote: On Thursday, 17 May 2018 at 17:26:04 UTC, Dmitry Olshansky wrote: TCP being reliable just plain doesn’t cut it. Corruption of single bit is very real. Quoting to highlight and agree. TCP is reliable because it resends dropped packets

Re: Help me please fix the bug

2018-05-18 Thread Mike Franklin via Digitalmars-d
On Friday, 18 May 2018 at 05:44:12 UTC, Majestio wrote: this() @safe nothrow { m_queue = () @trusted { return kqueue(); } (); m_events.length = 100; assert(m_queue >= 0, "Failed to create kqueue."); } Also, I believe this is __lambda1: m_queue = ()

[Issue 4579] std.typecons.Tuple syntax unpacking sugar

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4579 Dmitry Olshansky changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 5153] Struct pointer to struct variable assign error message

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5153 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/14dfe15bf5aad2c6638f1552b6250416b6b7c2b4 Fix Issue 5153 - Struct pointer to struct variable assign

[Issue 5153] Struct pointer to struct variable assign error message

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

[Issue 4563] [module system] Error messages for missing package or missing name

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4563 Dmitry Olshansky changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4563] [module system] Error messages for missing package or missing name

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4563 Dmitry Olshansky changed: What|Removed |Added CC|

WhiteSource supports D

2018-05-18 Thread Andre Pany via Digitalmars-d-announce
Hi, I just learned WhiteSource added support for D. https://www.whitesourcesoftware.com/what-is-whitesource/ Kind regards André

[Issue 4894] Cannot use the same name for nested functions even though they're in different scopes

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4894 --- Comment #2 from Dmitry Olshansky --- (In reply to Dmitry Olshansky from comment #1) > Seems like a minor limitation, and getting different mangling for each of identical signature functions: void main() { {

[Issue 5005] Remove restrictions on module/package with same name.

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5005 Dmitry Olshansky changed: What|Removed |Added Status|NEW |RESOLVED

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Gheorghe Gabriel via Digitalmars-d
On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. No, not sealed as in Scala. No, not sealed as in C# sealed as in oxford dictionary (close securely, non-porous).

[Issue 5004] show both resolved symbols and original identifier in error messages involving aliases

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5004 Dmitry Olshansky changed: What|Removed |Added CC|

[Issue 5093] improve error for importing std.c.windows.windows

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5093 Dmitry Olshansky changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5038] Allow declaring class invariant without parentheses

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5038 Dmitry Olshansky changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 5127] Template instantiation arguments with CTFE on expressions

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5127 Dmitry Olshansky changed: What|Removed |Added CC|

[Issue 10318] Built-in array sort usage warning, then deprecation, and finally removal

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10318 Issue 10318 depends on issue 5124, which changed state. Issue 5124 Summary: Make std.algorithm.sort weakly pure https://issues.dlang.org/show_bug.cgi?id=5124 What|Removed |Added

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread aliak via Digitalmars-d
On Friday, 18 May 2018 at 12:00:58 UTC, Gheorghe Gabriel wrote: On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. No, not sealed as in Scala. No, not sealed as in

Re: Splitting up large dirty file

2018-05-18 Thread Kagamin via Digitalmars-d-learn
On Thursday, 17 May 2018 at 20:08:09 UTC, Dennis wrote: ``` auto inputStream = (args.length < 2 || args[1] == "-") ? stdin : args[1].File; auto outputFile = new File("output.txt"); foreach (line; inputStream.byLine(KeepTerminator.yes)) outputFile.write(line); ``` Do it old

Re: Help me please fix the bug

2018-05-18 Thread Majestio via Digitalmars-d
On Friday, 18 May 2018 at 06:02:46 UTC, Mike Franklin wrote: On Friday, 18 May 2018 at 05:44:12 UTC, Majestio wrote: I'm curious if you could download one of the nightly compilers and test if it is still problem: http://nightlies.dlang.org/dmd-master-2018-05-18/ Mike About

[Issue 5124] Make std.algorithm.sort weakly pure

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5124 Dmitry Olshansky changed: What|Removed |Added Status|NEW |RESOLVED

Re: Need help with the dmd package on NixOS

2018-05-18 Thread Mike Franklin via Digitalmars-d
On Friday, 18 May 2018 at 10:28:37 UTC, Thomas Mader wrote: On Friday, 11 May 2018 at 04:27:20 UTC, Thomas Mader wrote: My suspicion about the switch to glibc 2.27 being the problem was wrong. I did a very timeconsuming bisection and found the problem commit to be the one which bumped binutils

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 09:07:57 UTC, Dave Jones wrote: FFS you're so dramatic. First the world is ending because private doesnt work as you expected. Then D is utterly useless without the changes you want. Now we live in some dystopian nightmare where we are all slaves to the Dlang spec.

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 11:41:33 UTC, KingJoffrey wrote: .. I should have also added: good luck rememebering to use private, cause public is default (ha haa haaa). then again, private is public, so I guess it doesn't matter. enjoy those debugging sessions...

[Issue 18871] New: DMD "illegal hardware instruction" crash

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18871 Issue ID: 18871 Summary: DMD "illegal hardware instruction" crash Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression

[Issue 18871] DMD "illegal hardware instruction" crash

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18871 mmcoma...@gmail.com changed: What|Removed |Added CC||mmcoma...@gmail.com --

[Issue 4997] names, values, length and basetype enum properties

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4997 Dmitry Olshansky changed: What|Removed |Added CC|

[Issue 5115] std.typecons.scoped problems

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5115 --- Comment #13 from Dmitry Olshansky --- Indeed and with `scope` becoming a thing in DIP 1000 we can have our scope storage class to have stack-allocated classes. scope a = new Blah(...); scope class instances are everywhere

Re: Of possible interest: fast UTF8 validation

2018-05-18 Thread Nemanja Boric via Digitalmars-d
On Friday, 18 May 2018 at 08:44:41 UTC, Joakim wrote: I was surprised to see that adding a emoji to a text message I sent last year cut my message character quota in half. I googled why this was and it turns out that when you add an emoji, the text messaging client actually changes your

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Dave Jones via Digitalmars-d
On Friday, 18 May 2018 at 02:08:47 UTC, KingJoffrey wrote: On Thursday, 17 May 2018 at 14:14:28 UTC, Steven Schveighoffer wrote: You're welcome to write a DIP, but I don't see a very good chance for acceptance given the discussions on this subject. -Steve I agree. The D community is too

[Issue 4970] Failed template instantiations need to propogate

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4970 Dmitry Olshansky changed: What|Removed |Added CC|

Re: Help me please fix the bug

2018-05-18 Thread Majestio via Digitalmars-d
On Friday, 18 May 2018 at 07:28:39 UTC, Mike Franklin wrote: On Friday, 18 May 2018 at 05:44:12 UTC, Majestio wrote: this() @safe nothrow { m_queue = () @trusted { return kqueue(); } (); m_events.length = 100; assert(m_queue >= 0, "Failed to create kqueue.");

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-18 Thread Kagamin via Digitalmars-d
On Thursday, 17 May 2018 at 19:13:48 UTC, Shachar Shemesh wrote: The only inherent non @safe thing we advocate here is if you want to be able to move const/immutable structs, in which case DIP 1014 advocates casting the constness away. That will, of course, have to be either @system or

Re: Help me please fix the bug

2018-05-18 Thread Mike Franklin via Digitalmars-d
On Friday, 18 May 2018 at 09:35:28 UTC, Majestio wrote: Also, I believe this is __lambda1: m_queue = () @trusted { return kqueue(); } (); Is `kqueue()` nothrow? You probably need to decorate that lambda with `nothrow`. (i.e. put a `nothrow` right after `@trusted`. Mike `kqueue()` is

Re: Need help with the dmd package on NixOS

2018-05-18 Thread Thomas Mader via Digitalmars-d
On Friday, 11 May 2018 at 04:27:20 UTC, Thomas Mader wrote: My suspicion about the switch to glibc 2.27 being the problem was wrong. I did a very timeconsuming bisection and found the problem commit to be the one which bumped binutils to 2.30. Can somebody help me to answer the question from

Re: Help me please fix the bug

2018-05-18 Thread Majestio via Digitalmars-d
On Friday, 18 May 2018 at 10:18:42 UTC, Seb wrote: On Friday, 18 May 2018 at 09:59:27 UTC, Majestio wrote: On Friday, 18 May 2018 at 06:02:46 UTC, Mike Franklin wrote: [...] About dmd-master-2018-05-18 ... build.sh: = #/bin/sh [...] FWIW

[Issue 4894] Cannot use the same name for nested functions even though they're in different scopes

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4894 Dmitry Olshansky changed: What|Removed |Added Keywords||bootcamp

Re: auto: useful, annoying or bad practice?

2018-05-18 Thread Chris via Digitalmars-d
On Thursday, 17 May 2018 at 11:38:13 UTC, Kagamin wrote: I prefer types spelled as it helps to understand the code. In javascript I have to look around to figure out types of variables and then I can understand the code. In C# I saw surprising abuse like `var id = 0L;` - to think someone

Re: Help me please fix the bug

2018-05-18 Thread Seb via Digitalmars-d
On Friday, 18 May 2018 at 09:59:27 UTC, Majestio wrote: On Friday, 18 May 2018 at 06:02:46 UTC, Mike Franklin wrote: [...] About dmd-master-2018-05-18 ... build.sh: = #/bin/sh [...] FWIW instead of such a build script, you could have used the

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Gheorghe Gabriel via Digitalmars-d
On Friday, 18 May 2018 at 12:16:55 UTC, aliak wrote: On Friday, 18 May 2018 at 12:00:58 UTC, Gheorghe Gabriel wrote: On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: [...] I think this code has cleaner sintax: class A { private int x; sealed int y; } void main() { A

Re: is ==

2018-05-18 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, May 19, 2018 03:32:53 Neia Neutuladh via Digitalmars-d-learn wrote: > > Of course, the most notable case where using == with null is a > > terrible idea is dynamic arrays, and that's the case where the > > compiler _doesn't_ complain. Using == with null and arrays is > > always

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 16:24:24 UTC, Gheorghe Gabriel wrote: On Friday, 18 May 2018 at 15:57:06 UTC, bachmeier wrote: On Friday, 18 May 2018 at 15:40:52 UTC, KingJo class A { private int x; private(this) int y; } I agree that this looks a bit strange. My initial proposal was

Re: is ==

2018-05-18 Thread Neia Neutuladh via Digitalmars-d-learn
On Saturday, 19 May 2018 at 01:48:38 UTC, Jonathan M Davis wrote: Actually, that runtime function has existed since before TDPL came out in 2010. It even shows the implementation of the free function opEquals (which at the time was in object_.d rather than object.d). I'm not even sure that the

[Issue 18871] DMD "illegal hardware instruction" crash

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18871 Mike Franklin changed: What|Removed |Added Component|dmd |phobos --- Comment #4

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 16:24:24 UTC, Gheorghe Gabriel wrote: On Friday, 18 May 2018 at 15:57:06 UTC, bachmeier wrote: On Friday, 18 May 2018 at 15:40:52 UTC, KingJo class A { private int x; private(this) int y; } I agree that this looks a bit strange. My initial proposal was

Re: Of possible interest: fast UTF8 validation

2018-05-18 Thread David Nadlinger via Digitalmars-d
On Wednesday, 16 May 2018 at 14:48:54 UTC, Ethan Watson wrote: And even better - LDC doesn't support core.simd and has its own intrinsics that don't match the SSE/AVX intrinsics API published by Intel. To provide some context here: LDC only supports the types from core.simd, but not the

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread aliak via Digitalmars-d
On Friday, 18 May 2018 at 12:26:14 UTC, Gheorghe Gabriel wrote: Good idea. Or: private(this) Because using "this" it is easier tu put this code in a mixin for multiple classes. Example: string var = "private(this) var;"; class A { mixin(var); } class B { mixin(var); } Me like :)

Re: Template instantiation fails on Linux, succeeds on Windows

2018-05-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/17/18 7:33 PM, Bastiaan Veelo wrote: On Thursday, 17 May 2018 at 23:18:32 UTC, Basile B. wrote: On Thursday, 17 May 2018 at 22:07:46 UTC, Bastiaan Veelo wrote: Hi! The code in [1] compiles and runs flawlessly on Windows, but not on Linux (neither run.dlang nor Travis docker image). Any

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread bachmeier via Digitalmars-d
On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote: This discussion (at least my reason for being involved in it) is about breaking this idiotic (in my opinion) concept that D enforces on 'everyone' - i.e the one class per module, or everything is public, and you have no say in it. I

Re: Temporary file creation for unittests

2018-05-18 Thread Uknown via Digitalmars-d-learn
On Friday, 18 May 2018 at 15:16:52 UTC, Russel Winder wrote: Hi, What's the current official position on how to create temporary files for use during a unittest. I found https://github.com/dlang/phobos/pull/5788 but it seems to be languishing in the "we have discussed all the issues that

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Gheorghe Gabriel via Digitalmars-d
On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote: On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote: [...] This is simply unavoidable - and, that 'surprise' you mention, is already there - it's not dependent on, or in any way related, to any proposal that might result from

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Gheorghe Gabriel via Digitalmars-d
On Friday, 18 May 2018 at 15:57:06 UTC, bachmeier wrote: On Friday, 18 May 2018 at 15:40:52 UTC, KingJo class A { private int x; private(this) int y; } I agree that this looks a bit strange. My initial proposal was "sealed" instead "private(this)" today.

Re: auto: useful, annoying or bad practice?

2018-05-18 Thread Neia Neutuladh via Digitalmars-d
On Friday, 18 May 2018 at 10:09:20 UTC, Chris wrote: In a way Java has slowly been moving in that direction anyway, cf. this answer [2] that reminded me of D's `auto` return type. [2] https://stackoverflow.com/questions/1348199/what-is-the-difference-between-the-hashmap-and-map-objects-in-java

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote: As clean and uncontroversial as this proposal might be, it unfortunately doesn't resolve the biggest issue. If you try to write Java code in D, you're still going to be using private, and you're still going to be caught by surprise.

[Issue 18768] object.getArrayHash with custom toHash shouldn't just sum hashes of array elements

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18768 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/5064012515d2954fb0884f422c1fd158a146 Fix Issue 18768 - object.getArrayHash with custom

[Issue 18768] object.getArrayHash with custom toHash shouldn't just sum hashes of array elements

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

Re: Of possible interest: fast UTF8 validation

2018-05-18 Thread Neia Neutuladh via Digitalmars-d
On Thursday, 17 May 2018 at 23:16:03 UTC, H. S. Teoh wrote: On Thu, May 17, 2018 at 07:13:23PM +, Patrick Schluter via Digitalmars-d wrote: [...] - the auto-synchronization and the statelessness are big deals. Yes. Imagine if we standardized on a header-based string encoding, and we

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 12:00:58 UTC, Gheorghe Gabriel wrote: I think this code has cleaner sintax: class A { private int x; sealed int y; } void main() { A a = new A(); a.x = 7; // ok, it's private to module a.y = 3; // error, it's sealed to class } I agree. I actually

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 12:26:14 UTC, Gheorghe Gabriel wrote: Good idea. Or: private(this) Because using "this" it is easier tu put this code in a mixin for multiple classes. Also, it also removes the redundancy of referring to the actual class name - as in: private(this) int i; //

[Issue 18871] DMD "illegal hardware instruction" crash

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18871 Mike Franklin changed: What|Removed |Added Keywords||pull --- Comment #2

Re: C API / const char *text / std.string.toStringz pointer is always NULL on C side

2018-05-18 Thread Robert M. Münch via Digitalmars-d-learn
On 2018-05-16 17:46:59 +, Steven Schveighoffer said: Well, for C see above on the D side: extern(C) {   result myfunc(double x, double y, const char *text, stuff *myStuff, bool measureOnly); } Shouldn't the result be a pointer? Indeed. And you know what? That was

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 12:32:30 UTC, Mike Parker wrote: private(this) int y; I think that might be it. So clean. This keeps the implementation simple and the scope focused. If a DIP were put forward, I think this would be the approach to take. Though a fairly strong case will still

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread aliak via Digitalmars-d
On Friday, 18 May 2018 at 12:32:30 UTC, Mike Parker wrote: private(this) int y; This keeps the implementation simple and the scope focused. Yeah, maybe more focused at the beginning would be better. A comma separated list can be added later if deemed worthy. And agreed, the java

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread KingJoffrey via Digitalmars-d
On Friday, 18 May 2018 at 12:51:42 UTC, Steven Schveighoffer wrote: Awesome, I love being on lists! Well, just remember to vote *down* the dip then, cause if doesn't get through, your quote be on my list of 'why OOP programmers should not consider D' ;-) It happened to me too!

Re: vibe.d 0.7.33 maintenance release

2018-05-18 Thread Márcio Martins via Digitalmars-d-announce
On Wednesday, 16 May 2018 at 08:48:15 UTC, Sönke Ludwig wrote: Being the final public release on the 0.7.x branch, this version on DMD 2.068.2 up to DMD 2.080.0 and LDC 1.9.0. It includes some major fixes and improvements backported from the 0.8.x branch. Since this marks the last 0.7.x

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Chris M. via Digitalmars-d
On Friday, 18 May 2018 at 12:16:55 UTC, aliak wrote: You may not need a new word at all. You can also enhance private to take arguments. Package already does this. You can give private a symbol list that says which symbols this is private for. So: class A { private int x; private(A)

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Mike Parker via Digitalmars-d
On Friday, 18 May 2018 at 12:42:05 UTC, KingJoffrey wrote: How hard is it to convince people, that being able to have the compiler detect semantic errors that break your defined interface is actually a good thing. I mean really. I've had this capability in major languages for decades. Let

[Issue 18871] DMD "illegal hardware instruction" crash

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18871 Mike Franklin changed: What|Removed |Added CC||slavo5...@yahoo.com

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/18 10:08 PM, KingJoffrey wrote: On Thursday, 17 May 2018 at 14:14:28 UTC, Steven Schveighoffer wrote: D's main draw is not OOP. So if you are here for OOP goodies, then you are definitely better off looking elsewhere. I'll add that too my list of D forum quotes. Awesome, I love

[Issue 18742] std.regex: Using CodePointSet in AAs breaks if reference count changes

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18742 vladvi...@gmail.com changed: What|Removed |Added Assignee|vladvi...@gmail.com |nob...@puremagic.com --

Re: Need help with the dmd package on NixOS

2018-05-18 Thread Johannes Pfau via Digitalmars-d
On Friday, 18 May 2018 at 11:28:30 UTC, Mike Franklin wrote: On Friday, 18 May 2018 at 10:28:37 UTC, Thomas Mader wrote: On Friday, 11 May 2018 at 04:27:20 UTC, Thomas Mader wrote: My suspicion about the switch to glibc 2.27 being the problem was wrong. I did a very timeconsuming bisection and

Re: C API / const char *text / std.string.toStringz pointer is always NULL on C side

2018-05-18 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 18 May 2018 at 14:06:11 UTC, Robert M. Münch wrote: So, having a wrong return-type here, resulted in the const char *text parameter always being NULL. Not sure I understand the relation but looks strange to me... at least not very obvious. A value struct return is actually done via

Temporary file creation for unittests

2018-05-18 Thread Russel Winder via Digitalmars-d-learn
Hi, What's the current official position on how to create temporary files for use during a unittest. I found https://github.com/dlang/phobos/pull/5788 but it seems to be languishing in the "we have discussed all the issues that no-one will ever have a problem with" phase. What to do between

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Mike Parker via Digitalmars-d
On Friday, 18 May 2018 at 12:16:55 UTC, aliak wrote: You may not need a new word at all. You can also enhance private to take arguments. Package already does this. You can give private a symbol list that says which symbols this is private for. So: class A { private int x; private(A) int

[Issue 18871] DMD "illegal hardware instruction" crash

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18871 --- Comment #3 from Mike Franklin --- Test case without dependency on std.experiment.allocator: struct S { ~this(){} } bool f() { try { return true; } finally { _ArrayDtor([S(),

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread bachmeier via Digitalmars-d
On Friday, 18 May 2018 at 12:26:14 UTC, Gheorghe Gabriel wrote: Good idea. Or: private(this) Because using "this" it is easier tu put this code in a mixin for multiple classes. Example: string var = "private(this) var;"; class A { mixin(var); } class B { mixin(var); } As clean

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Dave Jones via Digitalmars-d
On Friday, 18 May 2018 at 18:12:55 UTC, Chris M. wrote: On Friday, 18 May 2018 at 17:59:04 UTC, Dave Jones wrote: On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote: On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote: It will attract more programmers, not less - and trust me, D

[Issue 18873] New: sys.msg is not present in the distribution

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18873 Issue ID: 18873 Summary: sys.msg is not present in the distribution Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: normal

[Issue 18872] New: -dip1000 does not allow static arrays for types with destructors

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18872 Issue ID: 18872 Summary: -dip1000 does not allow static arrays for types with destructors Product: D Version: D2 Hardware: x86 OS: Windows Status:

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-18 Thread Rubn via Digitalmars-d
On Thursday, 17 May 2018 at 20:25:26 UTC, Shachar Shemesh wrote: Obviously, Something can be an enum or a boolean. If it is, however, then we have to perform a condition to select the correct value. The problem with conditionals is that if the CPU misses a guess about what they are (and in our

Re: Temporary file creation for unittests

2018-05-18 Thread Dr.No via Digitalmars-d-learn
On Friday, 18 May 2018 at 15:30:05 UTC, Uknown wrote: On Friday, 18 May 2018 at 15:16:52 UTC, Russel Winder wrote: Hi, What's the current official position on how to create temporary files for use during a unittest. I found https://github.com/dlang/phobos/pull/5788 but it seems to be

[Issue 18727] std.math.fmin does not handle nan correctly

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18727 ki...@gmx.net changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-18 Thread kinke via Digitalmars-d
On Thursday, 17 May 2018 at 19:11:27 UTC, Shachar Shemesh wrote: On 17/05/18 18:47, kinke wrote: Since clang is able to compile this struct and do everything with it, and since the existence of the move constructor requires the precise same type of hooking as is needed in this case, I tend to

Re: Need help with the dmd package on NixOS

2018-05-18 Thread Thomas Mader via Digitalmars-d
On Friday, 18 May 2018 at 13:15:35 UTC, Johannes Pfau wrote: As far as I know, that's correct. GCC-based compilers emit ASM code only and leave assembling of the objects files to the 'binutils as' assembler. That's probably the reason they assumed it's a binutils bug. For DMD, binutils is not

[Issue 13741] std.traits.moduleName & packageName do not work with functions that have parameters

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13741 Basile B. changed: What|Removed |Added Summary|std.traits.moduleName does |std.traits.moduleName &

[Issue 18303] Unqual gives weird results for const types

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18303 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18805] crash in iteration.d

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18805 Basile B. changed: What|Removed |Added Hardware|x86 |All OS|Windows

[Issue 18805] crash in iteration.d

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18805 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 18415] Typedef ignores @disabled default constructor

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18415 Basile B. changed: What|Removed |Added Keywords||pull CC|

[Issue 18303] Unqual gives weird results for const types

2018-05-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18303 Basile B. changed: What|Removed |Added CC||b2.t...@gmx.com

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Steven Schveighoffer via Digitalmars-d
On 5/18/18 12:07 PM, Gheorghe Gabriel wrote: Sometimes, I really need to put 2-3 or more different classes in a module and I don't want them to share private members (friend classes). The current solution is to create an individual module for each class, but I don't like it when my class

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Dave Jones via Digitalmars-d
On Friday, 18 May 2018 at 11:41:33 UTC, KingJoffrey wrote: On Friday, 18 May 2018 at 09:07:57 UTC, Dave Jones wrote: FFS you're so dramatic. First the world is ending because private doesnt work as you expected. Then D is utterly useless without the changes you want. Now we live in some

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Dave Jones via Digitalmars-d
On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote: On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote: It will attract more programmers, not less - and trust me, D better get more programmers using it, cause 18 years on, and it hasn't got that far, really. "Ohh Arya you will

Re: Sealed classes - would you want them in D? (v2)

2018-05-18 Thread Chris M. via Digitalmars-d
On Friday, 18 May 2018 at 17:59:04 UTC, Dave Jones wrote: On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote: On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote: It will attract more programmers, not less - and trust me, D better get more programmers using it, cause 18 years on,

is ==

2018-05-18 Thread IntegratedDimensions via Digitalmars-d-learn
Why does D complain when using == to compare with null? Is there really any technical reason? if one just defines == null to is null then there should be no problem. It seems like a pedantic move by who ever implemented it and I'm hoping there is actually a good technical reason for it.

Re: is ==

2018-05-18 Thread Uknown via Digitalmars-d-learn
On Friday, 18 May 2018 at 23:53:12 UTC, IntegratedDimensions wrote: Why does D complain when using == to compare with null? Is there really any technical reason? if one just defines == null to is null then there should be no problem. It seems like a pedantic move by who ever implemented it and

  1   2   >