Following function when called throws an access violation. I think it has to do with the assert statements, but I don't know why.[...]
Okay. I messed up here. It should be: this.base = new atom(...) . I corrected that. The assert statements still don't work though.