Phobos Unittest

Steven Schveighoffer schveiguy at gmail.com
Sat Sep 4 13:12:49 UTC 2021


On 9/4/21 5:42 AM, Per Nordlöw wrote:
> On Saturday, 4 September 2021 at 03:18:01 UTC, Paul Backus wrote:
>> As Steven Schveighoffer [pointed out][1], Phobos unittests are never 
>> included in user code, regardless of whether `StdUnittest` is used.
> 
> Yes, but they are lexed and parsed, right?

Yes, and I think this is trivially so for any versioned code in the file.

Note that lexing and parsing is extremely quick, and I wouldn't focus on 
trying to trim this out, you won't get much performance out of that.

-Steve


More information about the Digitalmars-d-learn mailing list