Skip to content

Commit 4ac56c6

Browse files
committed
make feature versions restricted in the compiler
1 parent 42effc7 commit 4ac56c6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

source/app.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,6 @@ int main(string[] args) {
245245
removing = false;
246246
next:
247247
}
248-
writeln(disabled);
249-
writeln(versions);
250248

251249
auto preproc = new Preprocessor();
252250
preproc.includeDirs = includeDirs;

source/preprocessor.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Preprocessor {
2020
string[] includeDirs;
2121
string[] included;
2222
string[] versions;
23-
string[] restricted;
23+
string[] restricted = ["IO", "File", "Time", "Exit"];
2424

2525
final void Error(Char, A...)(ErrorInfo error, in Char[] fmt, A args) {
2626
ErrorBegin(error);

std

Submodule std updated 1 file

0 commit comments

Comments
 (0)