ID:1429186
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
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.
I wonder how much work this kind of thing translates into when put into the engine, considering the DM proc would just be
proc/islist(Val) return istype(Val, /list)

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).
It is redundant, because it already exists, istype() can check the type of the value.
#define islist(x) istype(x,/list)
In response to Taitz
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.