From b37bd70b602b7ac6427dcf29f7cd9241b0a7ae09 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 10 Aug 2024 16:03:41 -0400 Subject: For tables, deprecate support for square bracket indexing and .default values, replacing them with a `:bump()` function for tables with numeric values. This means that counters can be implemented easily without the need to mask complexity. --- repl.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'repl.c') diff --git a/repl.c b/repl.c index fc531b86..7d4eae33 100644 --- a/repl.c +++ b/repl.c @@ -507,10 +507,6 @@ void eval(env_t *env, ast_t *ast, void *dest) } if (table_ast->fallback) eval(env, table_ast->fallback, &table.fallback); - if (table_ast->default_value) { - table.default_value = GC_MALLOC(value_size); - eval(env, table_ast->default_value, table.default_value); - } memcpy(dest, &table, sizeof(table_t)); break; } -- cgit v1.2.3