unittest under betterC
ryuukk_
ryuukk.dev at gmail.com
Mon Jun 5 03:42:20 UTC 2023
On Sunday, 4 June 2023 at 22:14:59 UTC, Richard (Rikki) Andrew
Cattermole wrote:
> On 05/06/2023 9:20 AM, ryuukk_ wrote:
>> Then this needs to be fixed asap, unittest needs to work for
>> the flags user will use
>
> There is nothing to fix.
>
> You literally do not have any of the druntime code needed to
> handle ModuleInfo and hence call via it.
>
> Nor do you have the entry point handled for you to call the
> functions...
>
> This isn't a language only feature, its also a runtime feature.
> Just like module constructors are.
I don't know how all this works, but the runtime shouldn't know
about tests, imagine if you ship a game, and the player can run
all the unittests, that doesn't make sense
The compiler should run the unittest, the compiler should run the
unittest, no matter what flag the programmer is using, in that
case: -betterC
If not, then it is a design flaw that needs to be fixed
You guys should read what you suggest to people sometimes, i
repeat, D is not a new language, and D is not the only language,
provide greatness to people, not dumb and broken stuff
Up your standard of quality
More information about the Digitalmars-d-learn
mailing list