From ce8647d2378514e9a77a86639dd23f1adf0f3808 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 6 Apr 2026 00:56:12 +0300 Subject: Add TODO regarding the scope system --- thac.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'thac.h') diff --git a/thac.h b/thac.h index 37dd9f5..060fcdf 100644 --- a/thac.h +++ b/thac.h @@ -294,6 +294,11 @@ int _exptok(enum tok_t, ...); struct node *getstmt(void); struct val eval(struct node *, struct scope *); +/* + * TODO: Probably current struct scope implementation is bad, + * as because of it functions below require double pointer + * and consequently overwrite it. Maybe a pure linked list? + */ long findvar(char *, struct scope **); ulong assignvar(char *, struct val, struct scope **); int varnextchar(struct scope *); -- cgit 1.4.1