ID:2532845
 
Redundant
Applies to:Dream Maker
Status: Redundant

This feature has already been implemented, or is already achievable with existing methods.
This proc must contain isicon, isloc, istype(reference, /image) istype(reference, /list) and etc.

It just examples, not my problems, don't offer me workarounds to this code:
for(var/i in content)
if(isref(i))
world.log << "[i] is reference. Deleting from inventory."
del(i)
for(var/i in overlays)
if(isref(i))
del(i)
Isn't this situation usually pretty easy to avoid? Typically you're not mixing types in a list, so you should usually know if a value is deletable just by checking if it's true.

And with an overlays list of course the items within are all appearances, which you can't delete.
Lummox, i want to for(var/i in vars) and if in i - reference do something and i don't want to create macros or long if with istype(), isicon, isloc, islist and etc....
And man. i said it isn't my problem, it is JUST EXAMPLE of code
In response to _Elar_
Oi tone it down. You've yet to give a usecase, and thus a valid reason, as to why this would be useful. Don't get hot headed.
Lummox JR resolved issue (Redundant)