Re: On the D Blog--Symphony of Destruction: Structs, Classes, and the GC

2021-03-04 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 4 March 2021 at 23:42:58 UTC, Dukc wrote: I don't understand this part. If an assert was failing, the program is going to terminate anyway, so InvalidMemoryOperationError is no problem. Well, it might obfuscate the underlying error if there is no stack trace, but banning

Re: On the D Blog--Symphony of Destruction: Structs, Classes, and the GC

2021-03-04 Thread H. S. Teoh via Digitalmars-d-announce
On Thu, Mar 04, 2021 at 11:42:58PM +, Dukc via Digitalmars-d-announce wrote: > On Thursday, 4 March 2021 at 13:54:48 UTC, Mike Parker wrote: [...] > If an assert was failing, the program is going to terminate anyway, so > InvalidMemoryOperationError is no problem. Well, it might obfuscate >

Re: On the D Blog--Symphony of Destruction: Structs, Classes, and the GC

2021-03-04 Thread Dukc via Digitalmars-d-announce
On Thursday, 4 March 2021 at 13:54:48 UTC, Mike Parker wrote: The blog: https://dlang.org/blog/2021/03/04/symphony-of-destruction-structs-classes-and-the-gc-part-one/ "Some examples: attempting to index an associative array can trigger an attempt to allocate a RangeError if the key is not

Re: Visual D 1.1.0 released

2021-03-04 Thread Imperatorn via Digitalmars-d-announce
On Thursday, 4 March 2021 at 17:18:38 UTC, Bastiaan Veelo wrote: On Thursday, 4 March 2021 at 13:42:47 UTC, Imperatorn wrote: [...] It already does this, I would say. 1. The D equivalent of your use of `#if ... #else ... #endif` is `version() {...} else {...}`, which works in VisualD the

Re: Visual D 1.1.0 released

2021-03-04 Thread Bastiaan Veelo via Digitalmars-d-announce
On Thursday, 4 March 2021 at 13:42:47 UTC, Imperatorn wrote: On Thursday, 4 March 2021 at 13:29:11 UTC, Imperatorn wrote: On Tuesday, 2 March 2021 at 08:58:15 UTC, Rainer Schuetze wrote: [...] A few questions. How hard would the following be: 1. Highlight code as dead or alive in static if

On the D Blog--Symphony of Destruction: Structs, Classes, and the GC

2021-03-04 Thread Mike Parker via Digitalmars-d-announce
This post is 3+ years overdue. I initially put it off for the lack of a purpose-built tool in the language or the library to distinguish between normal destruction and finalization (when the GC is invoked by the destructor). After we got the `GC.inFinalizer` thing and having made a few stalled

Re: Visual D 1.1.0 released

2021-03-04 Thread Imperatorn via Digitalmars-d-announce
On Thursday, 4 March 2021 at 13:29:11 UTC, Imperatorn wrote: On Tuesday, 2 March 2021 at 08:58:15 UTC, Rainer Schuetze wrote: [...] A few questions. How hard would the following be: 1. Highlight code as dead or alive in static if 2. Show typeid when hovering over a variable I have gifs

Re: Visual D 1.1.0 released

2021-03-04 Thread James Lu via Digitalmars-d-announce
On Tuesday, 2 March 2021 at 08:58:15 UTC, Rainer Schuetze wrote: Hi, development on Visual D, the Visual Studio extension that adds D language support to VS 2008-2019, has been rather slow recently, but finally the results of recent months have been released. Some highlights of this new

Re: Visual D 1.1.0 released

2021-03-04 Thread Imperatorn via Digitalmars-d-announce
On Tuesday, 2 March 2021 at 08:58:15 UTC, Rainer Schuetze wrote: Hi, development on Visual D, the Visual Studio extension that adds D language support to VS 2008-2019, has been rather slow recently, but finally the results of recent months have been released. Some highlights of this new