ID:767067
 
(See the best response by Mightymo.)
How would I create a new instance of a user-defined data object and then add it to a list?
You'll have to be more specific. What do you mean by a "user-defined data object"?
I guess datum is a better word (the guide calls them user-defineddata objevts in the title of that chapter); a data object that is not a /area, /turf , /obj, or /mob, but one defined by the programmer.
Best response
First, make an instance of the datum

var/Clan/C = new()


Then add it to the list.
ClanList += C

Of course, if the list does not exist, you will have to create and initialize it.
What do you mean by initialize?
var/list/aList


This is an uninitialized list. Attempting to add something to it will only result in an error. There are several ways to initialize a list.
Oh okay, thank you.