ID:176654
![]() Dec 22 2002, 11:20 pm
|
|
I've been fiddling with around with DM for a while now but I still haven't learned much about Datum's yet. Could someone explain to me and give me an example?
|
![]() Dec 22 2002, 11:25 pm
|
|
A datum is an object that lacks most of the vars, except for type and parent_type (although it can be "moved" to someone's contents, it doesn't have a loc). It also lacks most of the procs, only having New(), Del(), Read(), Write(), and Topic(). It is useful for holding abstract concepts, such as teams and skills.
|
Most of this is correct. However, I get "runtime error: cannot append to list" when I try to put a datum, text or num in something's contents. According to the helpfiles, the contents list is for movables (mobs and objs) and, in the case of areas, turfs. However, if Santa delivered a programming trick to work around list instance limits, I'm all ears. =)
|
ACWraith wrote:
Most of this is correct. However, I get "runtime error: cannot append to list" when I try to put a datum, text or num in something's contents. According to the helpfiles, the contents list is for movables (mobs and objs) and, in the case of areas, turfs. However, if Santa delivered a programming trick to work around list instance limits, I'm all ears. =) Nope, you're right. loc is an atom variable, not datum. Atoms are datums that are "mapable." |
Oops! You're right. I thought I remembered having datums in contents, but that was just another list I created to hold datums. My bad.
|
Tiko587 wrote:
I've been fiddling with around with DM for a while now but I still haven't learned much about Datum's yet. Could someone explain to me and give me an example? Indeed I can! Dream Tutor: Datums Are Our Friends Lummox JR |