Skip to content

Commit

Permalink
fix the strange error, the class env interpreted at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
zaher committed Dec 26, 2014
1 parent 33b293a commit 9fbf3df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sard/classes.d
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class SardObjects(T: SardObject): SardObject
void afterAdd(T object){
debug{
//not compiled :(
//writeln(this.classinfo.name ~ ".add:" ~ object.classinfo.name);
writeln(this.classinfo.name ~ ".add:" ~ object.classinfo.name);
}
}

Expand Down
1 change: 0 additions & 1 deletion src/sard/objects.d
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,6 @@ class SrdEnvironment: SardObject //TODO move it to process.d
protected:

override void created(){
//writeln("test");
with(_controls){

add("(", SardControl.OpenParams);
Expand Down
3 changes: 2 additions & 1 deletion src/sard/process.d
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SardRun: SardObject
protected:

public:
SrdEnvironment env = new SrdEnvironment();
SrdEnvironment env;
SoMain main;
string result;//Temp

Expand All @@ -71,6 +71,7 @@ class SardRun: SardObject

/* Compile */

env = new SrdEnvironment();
SrdParser parser = new SrdParser(main.block);
SrdLexical lexical = new SrdLexical();
lexical.parser = parser;
Expand Down

0 comments on commit 9fbf3df

Please sign in to comment.