Re: Release D 2.096.0

2021-04-12 Thread Mario Kröplin via Digitalmars-d-announce
The fix for Issue 21508 - _private class p in file p.d visible outside the file (module)_ removed a behavior that was (wrongly) used from time to time: ``` module Foo; class Foo {...} ``` The class `Foo` can no longer be imported with `import Foo;` This is a surprising breaking change.

Re: The ABC's of Templates in D

2020-07-31 Thread Mario Kröplin via Digitalmars-d-announce
On Friday, 31 July 2020 at 13:46:43 UTC, Mike Parker wrote: The blog: https://dlang.org/blog/2020/07/31/the-abcs-of-templates-in-d/ Minor detail: in "Even shorter syntax" the point is not that the template has only one parameter, but that the template argument is only one token long (for

uncovered: code coverage summary tool

2020-07-21 Thread Mario Kröplin via Digitalmars-d-announce
https://github.com/linkrope/uncovered examines coverage listing files to identify the ones with the most uncovered lines. The results are sorted by absolute number, rather than percentage - the most actionable at the end. There is also a package summary. For example, this is the output after

Re: Pijamas, a simple fluent assertation library (forked from Pyjamas)

2020-05-15 Thread Mario Kröplin via Digitalmars-d-announce
.empty and .throw are not that difficult: see https://code.dlang.org/packages/dshould On Friday, 15 May 2020 at 12:35:27 UTC, Luis wrote: On my TODOs list for v0.3 I have : * Rename module to pijamas * Add .empty that it's equivalent to .length(0) * Handle range.should.be.equal([1, 2, 3]) *

Oberon to D

2019-10-15 Thread Mario Kröplin via Digitalmars-d-announce
https://github.com/linkrope/oberon2d is a simple tool that translates source code from Oberon to D. It was intended to be thrown away after the resurrection of a single Oberon project. (So, don't expect too much.) But then, Bastiaan Veelo presented a very similar problem at DConf 2017. I'm

depend 0.2.0

2018-07-06 Thread Mario Kröplin via Digitalmars-d-announce
depend is a tool to visualize or to check import dependencies. It was briefly presented at DConf 2018. For an example, see the generated package dependencies of the vibe.d code: https://raw.githubusercontent.com/wiki/funkwerk/depend/images/vibe.png The tool has been completely reworked in

Re: detectcycles: A source code dependency cycle checker

2018-06-17 Thread Mario Kröplin via Digitalmars-d-announce
I did not mention it in the README, but the tred filter used in https://code.dlang.org/packages/depend complains about cyclic dependencies. I am currently working on a branch, where the transitive reduction and the corresponding warnings are built in. While this tool is for D only, it also

Re: Unit Testing in Action

2017-10-24 Thread Mario Kröplin via Digitalmars-d-announce
On Monday, 23 October 2017 at 12:38:01 UTC, Atila Neves wrote: "parallel test execution (from it’s name, the main goal of unit-threaded) was quite problematic with the first test suite we converted" I'd love to know what the problems were, especially since it's possible to run in just one

Re: Unit Testing in Action

2017-10-21 Thread Mario Kröplin via Digitalmars-d-announce
On Friday, 20 October 2017 at 21:26:35 UTC, qznc wrote: * fluent-asserts is considered the best expectations library. Syntax is `(x + y).should.equal(42).because("of test reasons");` and it gives nice output with code snippets. The code snippets were the prominent feature from the

Re: From the D Blog: The Evolution of the accessors Library

2017-09-06 Thread Mario Kröplin via Digitalmars-d-announce
On Wednesday, 6 September 2017 at 18:11:28 UTC, Joakim wrote: - There's no resolution to the Flag type issue: you should say whether you filed a bug, as you did with the issue in the private classes section, or if you were able to work around it. We asked in the forum whether this is a bug:

Re: Release D 2.076.0

2017-09-04 Thread Mario Kröplin via Digitalmars-d-announce
What's the problem with `TypeInfo_Typedef`? https://github.com/dlang/undeaD shows "build:failing". https://travis-ci.org/dlang/undeaD/jobs/270947584 shows: src/undead/doformat.d(934,23): Error: undefined identifier TypeInfo_Typedef

Re: Beta 2.075.0-b1

2017-06-27 Thread Mario Kröplin via Digitalmars-d-announce
"Deprecation: Comparison between different enumeration types const(Status) and Status; If this behavior is intended consider using std.conv.asOriginalType" It' not really intended to disallow comparisons between const(Status) and Status, isn't it? BTW: There's a regression: running dmd with

Re: DConf 2017 Hotel - book now!

2017-03-03 Thread Mario Kröplin via Digitalmars-d-announce
On Thursday, 2 March 2017 at 19:39:55 UTC, Walter Bright wrote: Tegel Airport to Hotel: Bus 109 to Jakob-Kaiser-Platz Subway U 7 in the direction of Rudow to Grenzallee Cross the street at the traffic light and turn left. The next street on the right is Jahnstraße. On the left side you will