Right now, the support for const/static is sort of hacked in seeming and not as useful for datums as it could be. It would be pretty cool if 'static' and 'const' weren't actually just 'global' vars, but based on the datum and its sub-types and respective instances as they should be. Right now, the following is NOT valid:
for(var/v in typesof(/test))
var/test/t = v
world << t.my_code
var/static/my_code = "HI"
my_code = "LOL"
Due to the following compiler error:
Test.dm:10:error: my_code: re-initialization of global var
Where that situation might actually be realistic in a scenario such as a modified version of this case
where you have a static ID for a given type.