Re: dub lint

2022-09-15 Thread rikki cattermole via Digitalmars-d-learn
https://github.com/dlang/dub/issues/2483

Re: dub lint

2022-09-15 Thread Christian Köstlin via Digitalmars-d-learn
On 16.09.22 01:14, Christian Köstlin wrote: On 16.09.22 00:14, Ali Çehreli wrote: On 9/15/22 15:04, Ali Çehreli wrote:  > Is there a way to silence specific 'dub lint' warnings? Answering myself, I don't think it's possible but luckily my catching an Error was in unittests only so I can do ei

Re: dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
On 9/15/22 16:14, Christian Köstlin wrote: > There is `dub run dscanner -- --defaultConfig` which creates a default > config in `~/.config/dscanner/dscanner.ini` (for linux and osx). Thanks! I love such features. It is so useful for a program to write out its configuration file. (My tools did t

Re: dub lint

2022-09-15 Thread Christian Köstlin via Digitalmars-d-learn
On 16.09.22 00:14, Ali Çehreli wrote: On 9/15/22 15:04, Ali Çehreli wrote: > Is there a way to silence specific 'dub lint' warnings? Answering myself, I don't think it's possible but luckily my catching an Error was in unittests only so I can do either of the following to skip unittest code

Re: dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
On 9/15/22 15:04, Ali Çehreli wrote: > Is there a way to silence specific 'dub lint' warnings? Answering myself, I don't think it's possible but luckily my catching an Error was in unittests only so I can do either of the following to skip unittest code when linting: a) Pass --skipTests to d

Re: dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
On 9/15/22 14:32, Ali Çehreli wrote: > (However, like all linters it's not perfect but I still like having that > power.) The following code is flagged because it catches Error: unittest { try { assert(false); } catch (Error) { // Cool... } } [warn]: Cat

dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
I've always thought of dub as a package manager and a build tool. But it actually makes it easy to use other tools: - dub lint: Runs some checks on your project. What I liked is how it removed the need to figure out how to install dscanner, which it uses behind the scenes. It installed dscanne

Re: Does the GC prioritize same-class when looking for things to free?

2022-09-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/15/22 1:12 PM, cc wrote: Why is Foo never deallocated here? (`DMD32 D Compiler v2.099.0-dirty` win64) In answer to your title question, no. It does not prioritize anything. If it thinks something is ready to be freed, it is freed. If it thinks something is not ready to be freed, it is no

Does the GC prioritize same-class when looking for things to free?

2022-09-15 Thread cc via Digitalmars-d-learn
Why is Foo never deallocated here? (`DMD32 D Compiler v2.099.0-dirty` win64) ```d class Foo { string s; static size_t count, alloced, dealloced; this() { "+Foo".writeln; count++; alloced++; } ~this() {

Re: can not take const struct member address at CTFE , is this a bug?

2022-09-15 Thread test123 via Digitalmars-d-learn
On Thursday, 15 September 2022 at 11:33:43 UTC, Dennis wrote: On Thursday, 15 September 2022 at 04:13:56 UTC, test123 wrote: I hope we have github bugs. It's being worked on. glad to know we are move into github. Please help me create a bug report if who has free time and bugs account. H

Re: can not take const struct member address at CTFE , is this a bug?

2022-09-15 Thread Dennis via Digitalmars-d-learn
On Thursday, 15 September 2022 at 04:13:56 UTC, test123 wrote: I hope we have github bugs. It's being worked on. Please help me create a bug report if who has free time and bugs account. Here you go: https://issues.dlang.org/show_bug.cgi?id=23336