ID:169765
May 3 2005, 12:56 pm
|
|
Is there any way to get the value of a variable based on the typepath of the containing datum?
|
Short and direct answer, no, as Lummox said. However, the answer is technically yes, since there is a way.
var/list/initial_variables[0] Just use the initial_from_type function, passing in a type path and a variable name. client/verb/test(type_path in typesof(/datum),variable as text) |
Unfortunately no. A new form of initial() which took two arguments (a path and a var name) would be incredibly useful, but does not exist.
Lummox JR