This commit has its date moved to earlier to reflect when the work was completed, as I forgot to actually make the commit until 2 minutes after midnight :/. It partially fixed a bug where ADT requires equality for its member types but won't use templated equality to be if there isn't a regular equality operator (not templated) it always returns false

This commit is contained in:
Nathan Braswell
2016-01-22 23:59:59 -05:00
parent 8c5bf36433
commit fc343ceea8
4 changed files with 41 additions and 21 deletions

View File

@@ -143,6 +143,12 @@ obj c_generator (Object) {
}
fun generate_function_call(node: *ast_node): string {
if (is_function_call(node->function_call.func) &&
is_function(node->function_call.func->function_call.func) &&
(node->function_call.func->function_call.func->name == "." || node->function_call.func->function_call.func->name == ".") &&
) {
}
var func_name = generate(node->function_call.func)
var parameters = node->function_call.parameters
if (func_name == "+" || func_name == "-" || func_name == "*" || func_name == "/" || func_name == "||"