Re: VSCode plugins

2017-07-03 Thread bauss via Digitalmars-d
On Tuesday, 4 July 2017 at 04:49:29 UTC, Manu wrote: If authors of both plugins are active here, I ask; why have 2 separate The same reason there are multiple editors.

VSCode plugins

2017-07-03 Thread Manu via Digitalmars-d
I've been using code-d for a while, and it generally works well. I've also noticed there's another plugin available, which at the time I first looked, appeared to be older and less-featured than code-d. I've recently had a couple of colleagues ask me which plugin to install, and I noticed that

Re: std.process.execute performance without Config.inheritFDs

2017-07-03 Thread bauss via Digitalmars-d
On Monday, 3 July 2017 at 20:34:00 UTC, Ali Çehreli wrote: On 07/03/2017 07:53 AM, Vladimir Panteleev wrote: > That code is pretty old. std.process was changed to use poll when > available over a year ago: > > https://github.com/dlang/phobos/pull/4114 > > Update your D installation? Jonathan

Re: Is there a macro for code snippets introduced with "---"?

2017-07-03 Thread Sönke Ludwig via Digitalmars-d
Am 04.07.2017 um 01:17 schrieb Andrei Alexandrescu: Trying to to this: file.dd This will be highlighted: --- int i; --- This should also be but it isn't: $(MYMACRO int j; ) Macros: MYMACRO = Code begins --- $0 --- Code ends file.dd ends The expansion

Re: Bulk allocation and partial deallocation for tree data structures.

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 03:13:14 UTC, Filip Bystricky wrote: Oh and I forgot to mention: another use-case for this would be for arrays. For manually managed arrays like std.container.array, it would make it possible to transfer ownership of individual objects from the array back to the

Re: Finding all the interfaces and their inheritance relationships at runtime

2017-07-03 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Monday, 3 July 2017 at 22:34:51 UTC, FoxyBrown wrote: On Monday, 3 July 2017 at 20:45:19 UTC, bauss wrote: On Monday, 3 July 2017 at 13:54:42 UTC, Jean-Louis Leroy wrote: I know how to find all the classes: foreach (mod; ModuleInfo) { foreach (c; mod.localClasses) { //

Re: Bulk allocation and partial deallocation for tree data structures.

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 02:53:00 UTC, Filip Bystricky wrote: On Tuesday, 4 July 2017 at 01:56:11 UTC, Moritz Maxeiner wrote: [...] However, in many cases it is unacceptable to have to prevent the whole block from being freed (especially if the memory is managed by a compacting gc).

Re: Go 1.9

2017-07-03 Thread jmh530 via Digitalmars-d
On Friday, 30 June 2017 at 20:36:47 UTC, bachmeier wrote: On Tuesday, 27 June 2017 at 02:40:37 UTC, jmh530 wrote: On Tuesday, 27 June 2017 at 02:38:31 UTC, bachmeier wrote: I'll post here after updating and testing the embedr package. Great. I'll give it a go again when it's ready. An

[Issue 17481] [REG 2.069.0] synchronized: Access Violation with dmd -O on win32

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17481 Walter Bright changed: What|Removed |Added CC|

Re: Bulk allocation and partial deallocation for tree data structures.

2017-07-03 Thread Filip Bystricky via Digitalmars-d-learn
Oh and I forgot to mention: another use-case for this would be for arrays. For manually managed arrays like std.container.array, it would make it possible to transfer ownership of individual objects from the array back to the program after the array goes out of scope. For gc slices, it could

Re: Is there a macro for code snippets introduced with "---"?

2017-07-03 Thread Andrei Alexandrescu via Digitalmars-d
On 7/3/17 7:19 PM, Vladimir Panteleev wrote: On Monday, 3 July 2017 at 23:17:02 UTC, Andrei Alexandrescu wrote: Is there a macro equivalent for "---"? D_CODE ? That renders the code in constant-width font, but it's not colorized. -- Andrei

Re: Bulk allocation and partial deallocation for tree data structures.

2017-07-03 Thread Filip Bystricky via Digitalmars-d-learn
On Tuesday, 4 July 2017 at 01:56:11 UTC, Moritz Maxeiner wrote: On Monday, 3 July 2017 at 17:06:10 UTC, Ali Çehreli wrote: On 07/02/2017 07:56 PM, Stefan Koch wrote: On Monday, 3 July 2017 at 02:51:49 UTC, Filip Bystricky wrote: Anyone? The answer is no. Partial deallocation in an

[Issue 17592] destroy isn't marked @nogc when the class destructor is marked as @nogc

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17592 alexanderheisterm...@gmail.com changed: What|Removed |Added Severity|blocker |major --

[Issue 14723] Typeinfo sent to GC does not retain storage class information

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14723 alexanderheisterm...@gmail.com changed: What|Removed |Added CC||alexanderheistermann@gmail.

[Issue 17592] destroy isn't marked @nogc when the class destructor is marked as @nogc

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17592 alexanderheisterm...@gmail.com changed: What|Removed |Added CC||alexanderheistermann@gmail.

Re: pragma(msg) now being innovated into C++

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d
On Monday, 3 July 2017 at 20:34:14 UTC, Walter Bright wrote: https://www.reddit.com/r/cpp/comments/6ky6oc/i_created_a_c_static_print_statement_it_allows/ Good things from D keep finding their way into C++. Unfortunately, it pretty much always looks worse there.

[Issue 17482] [REG 2.074] comile error: Comparing Nullable!Variant with basic type

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17482 Jonathan M Davis changed: What|Removed |Added CC|

[Issue 17480] [Downloads]

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17480 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/4848d71051dbe2e2178b51f7252b03607edda338 Fix Issue 17480 - Update file contents of the

Re: can't used dynamic shared libraries compiled with -defaultlib=libphobos2.so

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d
On Monday, 3 July 2017 at 21:43:07 UTC, Timothee Cour wrote: How would I use a dynamic shared libraries compiled with -defaultlib=libphobos2.so? Is that supported? I'm running into https://issues.dlang.org/show_bug.cgi?id=17591 Works for me using dmd v2.074.1 on 64bit Linux. What exactly are

Re: Bulk allocation and partial deallocation for tree data structures.

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d-learn
On Monday, 3 July 2017 at 17:06:10 UTC, Ali Çehreli wrote: On 07/02/2017 07:56 PM, Stefan Koch wrote: On Monday, 3 July 2017 at 02:51:49 UTC, Filip Bystricky wrote: Anyone? The answer is no. Partial deallocation in an arbitrary fashion is not advisable. And there are no standard library

[Issue 14085] Broken links on dlang.org

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 14085] Broken links on dlang.org

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085 --- Comment #8 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/5677e55763e30550ec77bbf3f9e2255f8ab63084 Fix broken link to cpp0x Partial fix for issue

[Issue 13153] dlang.org: provide version-specific documentation of the language and stdlib

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13153 --- Comment #6 from Seb --- See NG: http://forum.dlang.org/post/sxxdxahqofpdnsjdd...@forum.dlang.org > Could you please give a bit of insight in why that's difficult? My ignorant > take on this is: create a sandbox with

docarchives.dlang.io - go back in time to previous released versions of dlang.org

2017-07-03 Thread Seb via Digitalmars-d-announce
Hi all, I remember that especially long-time users of GDC and LDC complained from time to time about non-versioned docs. There's a simple solution now: docarchives.dlang.io and contains snapshots from dlang.org at every release from 2.074.0 to 2.066.0: https://docarchives.dlang.io/v2.074.0

Re: how to disable all default N-argument constructors for a struct?

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 4 July 2017 at 01:02:16 UTC, Era Scarecrow wrote: As soon as a class defines at least one constructor, the implicit default constructor is not avaliable anymore. - TDPL pg. 182 This is also true for structs, but one can't infer that from a rule about classes.

Re: how to disable all default N-argument constructors for a struct?

2017-07-03 Thread Moritz Maxeiner via Digitalmars-d
On Tuesday, 4 July 2017 at 00:46:36 UTC, Timothee Cour wrote: How would I disable the following? ``` auto a1=A(1); auto a2=A(1, "b"); Disable the struct's default constructor, which implicitly disables struct literals for it [1]. --- struct A { int a; string b; @disable this();

Re: how to disable all default N-argument constructors for a struct?

2017-07-03 Thread Era Scarecrow via Digitalmars-d
On Tuesday, 4 July 2017 at 00:46:36 UTC, Timothee Cour wrote: How would I disable the following? ``` auto a1=A(1); auto a2=A(1, "b"); struct A{ int a; string b; // @disable default constructors with N(N>=1) arguments } ``` I'd like to force the user to set fields explicitly, so as to

Re: how to disable all default N-argument constructors for a struct?

2017-07-03 Thread Stefan Koch via Digitalmars-d
On Tuesday, 4 July 2017 at 00:46:36 UTC, Timothee Cour wrote: How would I disable the following? ``` auto a1=A(1); auto a2=A(1, "b"); struct A{ int a; string b; // @disable default constructors with N(N>=1) arguments } ``` I'd like to force the user to set fields explicitly, so as to

how to disable all default N-argument constructors for a struct?

2017-07-03 Thread Timothee Cour via Digitalmars-d
How would I disable the following? ``` auto a1=A(1); auto a2=A(1, "b"); struct A{ int a; string b; // @disable default constructors with N(N>=1) arguments } ``` I'd like to force the user to set fields explicitly, so as to make it more safe to add / move fields

[Issue 14085] Broken links on dlang.org

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/c266aa9087829d34d00a0140be524c73e04c906c index.d: Use MREF to fix broken DDox links Partial fix

Re: Funny issue with casting double to ulong

2017-07-03 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jul 03, 2017 at 07:13:45AM +, Era Scarecrow via Digitalmars-d-learn wrote: > On Monday, 3 July 2017 at 06:20:22 UTC, H. S. Teoh wrote: [...] > > I don't think there's a way to change how the FPU works -- the > > hardware is coded that way and can't be changed. You'd have to > > build

Re: Why do "const inout" and "const inout shared" exist?

2017-07-03 Thread H. S. Teoh via Digitalmars-d
On Mon, Jul 03, 2017 at 11:49:56AM -0700, Walter Bright via Digitalmars-d wrote: [...] > Keep in mind that today's optimizers are pretty much tuned to what > works for C++. While D's particular semantics offer opportunities for > optimizations, they are currently pretty much unexploited. So what

Work on ARM backend for DMD started

2017-07-03 Thread solidstate1991 via Digitalmars-d-announce
While I currently don't have an ARM based hardware that would be easy to develop on, I'm planning to use QEMU to emulate some form of ARMv6 CPU, as it'll be the main target, as it's still being used in devices like the Raspberry Pi. ARMv5 is being considered if it doesn't need a lot of work,

Re: Is there a macro for code snippets introduced with "---"?

2017-07-03 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 3 July 2017 at 23:17:02 UTC, Andrei Alexandrescu wrote: Is there a macro equivalent for "---"? D_CODE ?

Is there a macro for code snippets introduced with "---"?

2017-07-03 Thread Andrei Alexandrescu via Digitalmars-d
Trying to to this: file.dd This will be highlighted: --- int i; --- This should also be but it isn't: $(MYMACRO int j; ) Macros: MYMACRO = Code begins --- $0 --- Code ends file.dd ends The expansion doesn't result in highlighted code. Is there a macro

[Issue 14085] Broken links on dlang.org

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085 Vladimir Panteleev changed: What|Removed |Added Keywords||pull

[Issue 17492] [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17492 Walter Bright changed: What|Removed |Added CC|

[Issue 17591] SIGSEGV in pthread_mutex_destroy after dlopen'ing a shared library with -defaultlib=libphobos2.so

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17591 Timothee Cour changed: What|Removed |Added CC|

[Issue 17592] New: destroy isn't marked @nogc when the class destructor is marked as @nogc

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17592 Issue ID: 17592 Summary: destroy isn't marked @nogc when the class destructor is marked as @nogc Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: Finding all the interfaces and their inheritance relationships at runtime

2017-07-03 Thread FoxyBrown via Digitalmars-d-learn
On Monday, 3 July 2017 at 20:45:19 UTC, bauss wrote: On Monday, 3 July 2017 at 13:54:42 UTC, Jean-Louis Leroy wrote: I know how to find all the classes: foreach (mod; ModuleInfo) { foreach (c; mod.localClasses) { // use c.base to construct inheritance graph } } Can

[Issue 12620] Compiler picks lesser template specialization match for float array alias value parameters

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12620 --- Comment #5 from Andrej Mitrovic --- Jesus sorry to spam Vladimir, but just how many issues have I filed over the years? lol. Thanks for taking care of this. --

can't used dynamic shared libraries compiled with -defaultlib=libphobos2.so

2017-07-03 Thread Timothee Cour via Digitalmars-d
How would I use a dynamic shared libraries compiled with -defaultlib=libphobos2.so? Is that supported? I'm running into https://issues.dlang.org/show_bug.cgi?id=17591

[Issue 14085] Broken links on dlang.org

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085 --- Comment #5 from Vladimir Panteleev --- The remaining dead ones: (In reply to Vladimir Panteleev from comment #4) > http://dlang.org/library/index.html -> > http://dlang.org/library/std_algorithm.html >

[Issue 17582] [REG2.059] Applying const to struct declaration should make the struct type const

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17582 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07452c208c6164292c46bff3292586b659856376 fix Issue 17582 - Applying const to struct declaration should

[Issue 17582] [REG2.059] Applying const to struct declaration should make the struct type const

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

[Issue 14085] Broken links on dlang.org

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14085 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 9855] Type comparison does not work properly with subtyping

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9855 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 17591] New: SIGSEGV in pthread_mutex_destroy after dlopen'ing a shared library with -defaultlib=libphobos2.so

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17591 Issue ID: 17591 Summary: SIGSEGV in pthread_mutex_destroy after dlopen'ing a shared library with -defaultlib=libphobos2.so Product: D Version: D2 Hardware: x86

[Issue 17264] [REG2.073] uniq fails with const elements

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17264 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 17523] Sporadic ICEs with inline asm

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17523 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12101] [CTFE] Can't return struct with closure during CTFE

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12101 Vladimir Panteleev changed: What|Removed |Added Keywords|

Re: CTFE Status 2

2017-07-03 Thread Stefan Koch via Digitalmars-d
On Monday, 3 July 2017 at 06:15:44 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] This code works now as well ;) int maxFloat() { float prev = 1; foreach(int i; 0 .. int.max) { if (i == prev++) return i; } return int.max;

Re: Finding all the interfaces and their inheritance relationships at runtime

2017-07-03 Thread bauss via Digitalmars-d-learn
On Monday, 3 July 2017 at 13:54:42 UTC, Jean-Louis Leroy wrote: I know how to find all the classes: foreach (mod; ModuleInfo) { foreach (c; mod.localClasses) { // use c.base to construct inheritance graph } } Can I do the same with all the interfaces? Looking at

[Issue 17590] Unnecessary GC alloc on returning static local struct

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17590 --- Comment #1 from johanenge...@weka.io --- https://github.com/dlang/dmd/pull/6963 --

[Issue 17590] New: Unnecessary GC alloc on returning static local struct

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17590 Issue ID: 17590 Summary: Unnecessary GC alloc on returning static local struct Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 17590] Unnecessary GC alloc on returning static local struct

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17590 johanenge...@weka.io changed: What|Removed |Added Keywords||industry --

[Issue 15225] cannot overload directly aliased function literals

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15225 --- Comment #2 from Vladimir Panteleev --- (In reply to Vladimir Panteleev from comment #1) > then compilation succeeds (though then I get a linker error). Linking succeeds since 2.071.0 (fixed by

pragma(msg) now being innovated into C++

2017-07-03 Thread Walter Bright via Digitalmars-d
https://www.reddit.com/r/cpp/comments/6ky6oc/i_created_a_c_static_print_statement_it_allows/

Re: std.process.execute performance without Config.inheritFDs

2017-07-03 Thread Ali Çehreli via Digitalmars-d
On 07/03/2017 07:53 AM, Vladimir Panteleev wrote: > That code is pretty old. std.process was changed to use poll when > available over a year ago: > > https://github.com/dlang/phobos/pull/4114 > > Update your D installation? Jonathan is hailing from Weka. :) As evidenced from Johan's recent

[Issue 12620] Compiler picks lesser template specialization match for float array alias value parameters

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12620 Vladimir Panteleev changed: What|Removed |Added Status|NEW

Re: Checked vs unchecked exceptions

2017-07-03 Thread Crayo List via Digitalmars-d
On Thursday, 29 June 2017 at 21:06:12 UTC, Ola Fosheim Grøstad wrote: On Thursday, 29 June 2017 at 19:34:22 UTC, Crayo List wrote: Checked exceptions are a horrible idea because they leak internal implementation details as part of the signature of a method directly and in a transitive manner,

[Issue 17589] New: Prevent local imports from hiding imported symbols

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17589 Issue ID: 17589 Summary: Prevent local imports from hiding imported symbols Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 1360] GC emits HLT when GetThreadContext fails after CreateRemoteThread.

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1360 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 14620] make core.Thread.Fiber more @nogc

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14620 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 14684] Circular import cases "Must be imported as FileName" error

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14684 Vladimir Panteleev changed: What|Removed |Added Hardware|x86_64 |All

[Issue 14684] Circular import cases "Must be imported as FileName" error

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14684 Vladimir Panteleev changed: What|Removed |Added Status|NEW

Re: Why do "const inout" and "const inout shared" exist?

2017-07-03 Thread Nick Treleaven via Digitalmars-d
On Monday, 3 July 2017 at 15:48:26 UTC, Petar Kirov [ZombineDev] wrote: but can you explain exactly what part of Rust's type system provides extra benefits in terms of optimization over D's type system? In safe Rust, a reference to mutable data has to be unique [1]. So the optimizer could

[Issue 7539] cast(bool) of empty array must result in false

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7539 --- Comment #4 from timon.g...@gmx.ch --- :( --

Re: What are the unused but useful feature you know in D?

2017-07-03 Thread solidstate1991 via Digitalmars-d
On Sunday, 25 June 2017 at 23:21:25 UTC, aberba wrote: Can you share feature(s) in D people are not talking about which you've found very useful? If you need to write a lightweight library or app with no GC and Phobos, you can fall back to C functions in core.stdc, my wavefile codec/utility

[Issue 13667] ICE with inout and alias this

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13667 Vladimir Panteleev changed: What|Removed |Added Hardware|x86_64 |All

[Issue 10378] Prevent local imports from hiding local symbols

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10378 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 15819] private import std.array inside class prevents calling instance.array(), giving contradicting error

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15819 Vladimir Panteleev changed: What|Removed |Added Status|NEW

asm.dlang.org and relocations

2017-07-03 Thread Johan Engelen via Digitalmars-d
This code: ``` void fun() { auto a = new int; } ``` results in this assembly output on asm.dlang.org: ``` void example.fun(): push rbp movrbp,rsp subrsp,0x10 movedi,0x0 call 12 movQWORD PTR [rbp-0x8],rax leave ret ``` It'd help a lot if relocation entries are

[Issue 7539] cast(bool) of empty array must result in false

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7539 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 4733] Possible bugs caused by dynamic arrays in boolean evaluation context

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4733 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 5922] immutable and static variables usage in asm{}

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5922 Vladimir Panteleev changed: What|Removed |Added Hardware|x86 |All

Re: Accessing part of a struct in an easy way

2017-07-03 Thread Paolo Invernizzi via Digitalmars-d-learn
On Monday, 3 July 2017 at 17:30:51 UTC, Ali Çehreli wrote: hOn 07/03/2017 10:13 AM, Paolo Invernizzi wrote: > [...] struct with > [...] I had difficulty understanding the requirements. For example, it's not clear whether you want the literal "first" and "second" names. [...] Thanks Ali,

[Issue 15130] dmd emits huge data for zero initialized struct

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15130 Vladimir Panteleev changed: What|Removed |Added CC|

Re: Why do "const inout" and "const inout shared" exist?

2017-07-03 Thread Walter Bright via Digitalmars-d
On 7/3/2017 8:48 AM, Petar Kirov [ZombineDev] wrote: Unlike C++, in D objects can't be shared across threads, unless they are marked as `shared` (modulo un-`@safe` code - like casts and `__gshared` - and compiler bugs). I.e. non-`shared` objects can't be mutated by more than one thread.

[Issue 17588] SIGSEGV in pthread_mutex_destroy on a shared library executable (with -pie)

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17588 --- Comment #2 from Timothee Cour --- D20170703T114214 --

[Issue 17588] SIGSEGV in pthread_mutex_destroy on a shared library executable (with -pie)

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17588 Timothee Cour changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 15432] Win64: bad code offset in debug line number info

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15432 --- Comment #4 from Rainer Schuetze --- Here's a further reduction: /// void call15432(string col) {} int test15432() // line 8 { call15432(null); return 0; } /// dumpbin:

Munich D Meetup July 2017

2017-07-03 Thread Dragos Carp via Digitalmars-d-announce
Hi all, On 18 July, we will have our next Munich meetup. Mario will give a talk with the title "Avoiding the Big Ball of Mud". As usual before and after the talk we will also have good conversations with pizza and drinks. Please RSVP on:

[Issue 11637] Statically disallow sparse array literals and associative array literals with duplicate indexes

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11637 Vladimir Panteleev changed: What|Removed |Added Hardware|x86 |All

[Issue 4034] double-double functions seem to not pure-optimize

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4034 Vladimir Panteleev changed: What|Removed |Added Hardware|x86 |All

[Issue 11385] XXX is a nested function and cannot be accessed from XXX

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11385 Vladimir Panteleev changed: What|Removed |Added See Also|

[Issue 11886] "cannot access frame" error on lambda in lambda

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11886 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 12204] using delegates as alias parameter to templated struct: cannot get frame pointer to sort

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12204 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 3011] alias should have assignment syntax

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3011 Vladimir Panteleev changed: What|Removed |Added See Also|

Error in spec: struct init with member names

2017-07-03 Thread Johan Engelen via Digitalmars-d
The spec (or DMD frontend) is broken regarding struct initialization with explicit mention of member field names: https://dlang.org/spec/struct.html#static_struct_init The spec says: "The static initializer syntax can also be used to initialize non-static variables, provided that the member

[Issue 3085] Cannot index tuple in declaration

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3085 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 1215] Alias of a indexed tuple's field isn't allowed

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1215 Vladimir Panteleev changed: What|Removed |Added CC|

[Issue 13094] Refused implicit supertype conversion of different enums in array literal

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13094 Vladimir Panteleev changed: What|Removed |Added Hardware|x86 |All

Re: Let's talk about deprecations

2017-07-03 Thread bachmeier via Digitalmars-d
On Monday, 3 July 2017 at 16:51:47 UTC, Cym13 wrote: I don't get it: how is linking old and unmaintained code "fixing" anything? Dead code is dead, if it's been two years already let it die and fix your own, anything else can't be future-proof. I don't understand your comment. I'm

[Issue 17588] New: SIGSEGV in pthread_mutex_destroy on a shared library executable (with -pie)

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17588 Issue ID: 17588 Summary: SIGSEGV in pthread_mutex_destroy on a shared library executable (with -pie) Product: D Version: D2 Hardware: x86 OS: Linux

Re: Let's talk about deprecations

2017-07-03 Thread Seb via Digitalmars-d
On Monday, 3 July 2017 at 16:47:35 UTC, Iain Buclaw wrote: Can we tag compiler versions in dub? I think you have such a construct in npm... Found it, https://docs.npmjs.com/files/package.json#engines Yeah - compiler, os, and cpu all seem like something that should be made available in the

Re: Building phobos with wine fails

2017-07-03 Thread Jonathan M Davis via Digitalmars-d
On Monday, July 03, 2017 19:57:35 Shachar Shemesh via Digitalmars-d wrote: > On 03/07/17 16:59, Jonathan M Davis via Digitalmars-d wrote: > > 1. The functions for converting to and from a timezone take a struct > > containing information about what that timezone is - including the DST > >

Re: Accessing part of a struct in an easy way

2017-07-03 Thread Ali Çehreli via Digitalmars-d-learn
hOn 07/03/2017 10:13 AM, Paolo Invernizzi wrote: > It's not exactly the same, as first and second should be struct with > partial fields from Foo, of different types. I had difficulty understanding the requirements. For example, it's not clear whether you want the literal "first" and "second"

[Issue 15432] Win64: bad code offset in debug line number info

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15432 Vladimir Panteleev changed: What|Removed |Added Keywords|

Re: Accessing part of a struct in an easy way

2017-07-03 Thread Paolo Invernizzi via Digitalmars-d-learn
On Monday, 3 July 2017 at 16:41:51 UTC, vit wrote: On Monday, 3 July 2017 at 13:53:45 UTC, Paolo Invernizzi wrote: [...] //https://dpaste.dzfl.pl/d59469c264b2 import std.algorithm : map, copy, equal; import std.range : iota; struct Foo { int[3] a; string[2] b; } ref T first(R :

  1   2   >