Accessing (/datum)::parent_type in any way crashes Dream Daemon.
Numbered Steps to Reproduce Problem:
Compile any of the below snippets.
Code Snippet (if applicable) to Reproduce Problem:
world.log << json_encode((/datum)::parent_type)
OR
world.log << "[(/datum)::parent_type]"
OR
var/variable = (/datum)::parent_type
Expected Results:
The statement producing a runtime/null value
Actual Results:
BUG: Crashing due to an illegal operation!
Does the problem occur:
Every time? Or how often?
Yes.
In other games?
Yes.
In other user accounts?
Yes.
On other computers?
Probably.
When does the problem NOT occur?
When accessing parent_type of any other base type, f.e /atom or /turf
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Haven't checked.
Workarounds:
Instantiate a datum variable, and access parent_type using
datum_var.parent_type