ID:1377249
 
(See the best response by Ter13.)
Code:


Problem description:

How would I call a proc of a datum?

Such as /datum/blah/blah/proc/Happy()

to another datum such as /datum/blah2/blah2/proc/wee
Best response
The same way you would call a proc on anything else.

You will need a reference to an initialized datum.
newdatum
var
name = "derp"
proc
testname()
world << name
proc
test()
var/newdatum/nd = new/newdatum()
nd.testname()


mobs, objs, turfs, etc. are all datums.

This is how BYOND defines its class tree:

datum
atom
area
turf
movable
obj
mob
In response to Ter13
Fun fact!

ATOM refers to:

atom
area // A
turf // T
movable
object // O
mob // M
here's a funner fact

atom
movable

area //A
parent_type = /atom
turf //T
parent_type = /atom
obj //O
parent_type = /atom/movable
mob //M
parent_type = /atom/movable