compiles

Returns true if the given code compiles.

This will run the frontend up to, including, the semantic analysis.

bool
compiles
(
string code
,
string filename = "test.d"
)

Parameters

code
Type: string

the code to compile

filename
Type: string

the filename to use when compiling the code

Return Value

Type: bool

true if the given code compiles

Meta