Fixed a pretty bad error in isNullable logic, I must have been tired. Also, edited grammer to support a[n].b, which was previously done with wrong operator precedence so that that construction was illegal. vector.krak still doesn't quite parse, but that's because of some error with if (!name) which I will fix later. Bedtime.

This commit is contained in:
Nathan Braswell
2014-07-02 01:18:27 -07:00
parent 03770028ad
commit 22fbd61360
5 changed files with 37 additions and 24 deletions

View File

@@ -51,9 +51,9 @@ template <T> T* new() {
}
template <T> void delete(T* toDelete, int itemDestructCount) {
for (int i = 0; i < itemDestructCount; i++)
for (int i = 0; i < itemDestructCount; i++;)
toDelete[i].destruct();
delete(toDelete);
delete<T>(toDelete);
}
template <T> void delete(T* toDelete) {