Added "Init Position Call" (takes the place of implicit constructors) and the this keyword! This was the structure needed for more sensable memory management. At least delete will need some updating before it becomes very usable, though. (Figuring out the types for function template instantiation) Anyway, good progress here!

This commit is contained in:
Nathan Braswell
2014-06-26 01:45:44 -07:00
parent 82d8a15de0
commit 63d9ec66e1
7 changed files with 134 additions and 50 deletions

View File

@@ -11,6 +11,11 @@ void print(char* toPrint) {
return;
}
void println(char* toPrint) {
print(toPrint);
print("\n");
}
void print(int toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """
@@ -20,6 +25,11 @@ void print(int toPrint) {
return;
}
void println(int toPrint) {
print(toPrint);
print("\n");
}
void print(float toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """
@@ -27,4 +37,10 @@ void print(float toPrint) {
"""
}
return;
}
}
void println(float toPrint) {
print(toPrint);
print("\n");
}