From 2a801a129b29f15bd225c7ee8ba41dc7a315c2af Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 4 Apr 2021 17:45:14 -0300 Subject: [PATCH] add note about comptime hash map --- src/lang.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lang.zig b/src/lang.zig index 127ff04..3747941 100644 --- a/src/lang.zig +++ b/src/lang.zig @@ -643,7 +643,10 @@ pub const Lang = struct { // in a variable because then that variable must be comptime. // the drawback of this approach is that our emitted code is basically linear - // because we don't use the hashmap anymore. maybe #5359 can help. + // because we don't use the hashmap anymore. + // + // Attempting to use ComptimeHashMap hits compiler bugs and I'm + // not sure if we can map strings to *types* in it. if (std.mem.eql(u8, &lowered_command_name, command_string)) { found = true;