diff --git a/build/rtsgame/main.core b/build/rtsgame/main.core index d48b50b..d5b138c 100644 --- a/build/rtsgame/main.core +++ b/build/rtsgame/main.core @@ -1,25 +1,3 @@ -/*@language_todo: labeled block :LabeledBlock - -It acts just like a scope in C. -BUT it can be turned into a goto label by adding another semicolon -at the end. - -:block - thing := 1 - thing2 := thing - -:label_without_block -thing := 1 - - -:goto_block: - thing := 1 - thing2 := thing - -:goto_block: for - -*/ - #import "raylib.core" A :: #load "array.core" MAP :: #load "map.core" diff --git a/core_compiler_interface.hpp b/core_compiler_interface.hpp index 361b701..7d6840f 100644 --- a/core_compiler_interface.hpp +++ b/core_compiler_interface.hpp @@ -630,12 +630,13 @@ struct Ast_Decl : Ast { uint64_t operator_overload_arguments_hash; Ast_Operator_Info *overload_op_info; - // @todo: move this to Ast_Poly + // @todo: move this to Ast_Poly, perhaps this change needs to be combined with + // the change to lambda where they stop being expressions uint64_t polymorph_hash; Array polymorph_resolved_parameter_types; Array polymorph_parameters; Array polymorphs; // instantiated polymorphs - + Ast_Scope *scope; Ast_Expr *typespec; union { diff --git a/core_main.cpp b/core_main.cpp index 11dfe00..f02df18 100644 --- a/core_main.cpp +++ b/core_main.cpp @@ -1,7 +1,6 @@ /* Features -- Labeled blocks / gotos :LabeledBlock - Add := for default arguments in lambda. (a := false, b := false) - Add struct default values. - Add for loop: diff --git a/core_polymorph.cpp b/core_polymorph.cpp index 10e1914..b514d1f 100644 --- a/core_polymorph.cpp +++ b/core_polymorph.cpp @@ -338,7 +338,7 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope, Array *repl) case AST_UNION: case AST_ENUM: case AST_LAMBDA: - case AST_TYPE: // @cleanup: what is this used for? + case AST_TYPE: case AST_CONST: case AST_VAR: { Ast_Decl *src = (Ast_Decl *)ast; diff --git a/core_typechecking.cpp b/core_typechecking.cpp index cbd09ab..e67cd3b 100644 --- a/core_typechecking.cpp +++ b/core_typechecking.cpp @@ -1167,7 +1167,7 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_and_const_str // @consider: Maybe instead of using AST_IDENT another case should be // added like AST_RESOLVED or something because currently the identifier - // is a bit bogus. + // can already be resolved and stuff like that // if (node->intern_val == pctx->intern("MAP"_s)) { // __debugbreak();