Is it acceptable to not parse unittest blocks when unittests are disabled ?

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 1 18:54:03 PDT 2017


On Sat, Apr 01, 2017 at 02:14:25PM +0000, rjframe via Digitalmars-d wrote:
> On Sat, 01 Apr 2017 07:39:49 +0000, Stefan Koch wrote:
> 
> > On Saturday, 1 April 2017 at 02:12:46 UTC, Walter Bright wrote:
> >> On 3/31/2017 6:33 PM, Jonathan M Davis via Digitalmars-d wrote:
> >>> [...]
> >>
> >> I know. But it is worth it. It should enable D compilers to scale
> >> to handling very large imports.
> > 
> > This should be optional and controlled via a switch like
> > --fast-parse ?
> 
> I wonder if `dmd -o-` should continue to parse everything (possibly
> including unittests, which it currently doesn't do) rather than parse
> lazily. Though it would benefit from a speed increase, it's used to
> syntax check and would be more useful if it actually does parse
> everything.

What's wrong with `dmd -unittest -o-`?


T

-- 
Unix is my IDE. -- Justin Whear


More information about the Digitalmars-d mailing list