Load cannot be namespaced anymore due to weird namespace behaviour that this creates.

I need to add a way to import but force evaluation of everything in the future to make
that up.
This commit is contained in:
Krzosa Karol
2022-10-06 14:24:29 +02:00
parent 8395969620
commit 0010b92ef1
9 changed files with 19 additions and 16 deletions

View File

@@ -821,11 +821,6 @@ parse_decl(B32 is_global){
result = parse_enum(tname);
}
else if(token_match_pound(pctx->intern("load"_s))){
Ast_File *file = parse_load(false);
result = ast_file_namespace(tname, file, tname->intern_val);
}
else if(token_match_pound(pctx->intern("import"_s))){
Ast_Module *module = parse_import(false);
result = ast_module_namespace(tname, module, tname->intern_val);