Added Delight "normal" mode restrictions
commit6b94bba36cb74290ccce68b3704fb08292bd9f38
authorThomas Leonard <talex5@gmail.com>
Fri, 19 Sep 2008 10:54:28 +0000 (19 11:54 +0100)
committerThomas Leonard <talex5@gmail.com>
Fri, 19 Sep 2008 11:01:05 +0000 (19 12:01 +0100)
treeabe4cd5f1d2c6949e19422f7164c5386e38a3a74
parentedd80f56a1e2e56419a05bbe30d2d831e988bbe7
Added Delight "normal" mode restrictions

If we're in a .dlt file that's not in the "dlt" package, disallow global state:

- No module variables
- No static constructors or destructors (since they can't do anything anyway)
- No static class or function variables
- No extern() linkage
dmd/parse.c
dmd/parse.h