#struct as ds_map key
1 messages · Page 1 of 1 (latest)
a quick test seems to say yes
var _a = { a: 1 }
show_debug_message(_a) // => { a : 1 }
show_debug_message(variable_get_hash("a")) // => 100011
show_debug_message(variable_get_hash("{ a : 1 }")) // => 100253
show_debug_message(variable_get_hash(_a)) // => 100253
That's variable hashes
They're not the same
iirc a ds_map will just stick anything in there as is the key
So I'm fairly certain it's some hash representation of the memory address to the struct
using it as a key will not create a strong reference then right