Skip to content

Commit

Permalink
I give up
Browse files Browse the repository at this point in the history
  • Loading branch information
HeronErin committed Apr 23, 2024
1 parent 3f06882 commit c6a1068
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit c6a1068

Please sign in to comment.