#Symbols represented by valid memory addresses
1 messages · Page 1 of 1 (latest)
why a pointer to itself? why not just a pointer to an unused byte or something?
it greatly simplifies some code elsewhere in my interpreter
okay
how do you want to create these symbols? do they have to be generated based on a comptime-known string or something?
or can they just be global variables you define in a file somewhere
global variables in a file
as of 0.14 you can just do const foo = &foo; :)
tho you might need to give it a type? idk
I'll try that, I should've thought of that heh
what would the type be? 🤔
just *usize?
lemme try
in which case you'd have to do some shenanigans ^^'