From c6a106804a489e6b792f2a2e303530942119d702 Mon Sep 17 00:00:00 2001 From: HeronErin Date: Tue, 23 Apr 2024 13:03:52 -0400 Subject: [PATCH] I give up --- source/main.d | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/main.d b/source/main.d index 716c0d7..bf25e06 100644 --- a/source/main.d +++ b/source/main.d @@ -32,8 +32,7 @@ void main() parseLine("int x, y, z = 4*5+2;".tokenizeText, index, scopeData); "PTR:".writeln; - (cast(size_t)scopeData.declaredVariables[0].name.names[0].ptr).writeln; - - // THIS IS A dchar[] !!!!! WTF - (cast(size_t)scopeData.declaredVariables[0].name.names[0].ptr == 1).writeln; + dchar[] name = scopeData.declaredVariables[0].name.names[0]; + (cast(size_t)name.ptr).writeln; + (cast(size_t)name.ptr == 1).writeln; }