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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user