I think it's about time we add this function.
Just pass a variable through, it is a list return True, else False. Done and done. Easy enough.
ID:1429186
![]() Nov 24 2013, 9:42 am
|
|||||||
| |||||||
It is redundant, because it already exists, istype() can check the type of the value.
#define islist(x) istype(x,/list)
|
There are plenty of redundant istype()-like procs.
DM Reference (isloc proc): This is equivalent to: (ismob(Loc) || isobj(Loc) || \ isturf(Loc) || isarea(Loc))and all four of those are just istype(), although they accept more than one argument. It's possible that those procs existed before istype() did, but I don't know that much about DUNG history. |
I'm just curious how much time it actually takes, from Tom/Lummox JR's busy schedule, to add stuff that looks this simple in DM to the engine in C++ (or whatever).