ID:105494
Dec 9 2010, 9:35 am
|
|||||||
Redundant
| |||||||
Title should be explanatory. We can already do istype(var,/list) so not a big deal
|
I can agree, but then where do you stop? isclient() is another nice addition. My solution: I have a #define file of common things that are useful in just about every project, and usually just drag that around.
|
Superbike32 wrote:
Well usually I try to limit people to not being able to pass data that's not of the correct type Irrelevant Anyways, if you can already check that it's not all the other types of data that could possibly be passed in you can use a method of elimination to see if it's a list. I posted how to directly check if something is a list, there's no point in checking everything it isn't I only request this for some sort of completion. Since /list isn't a true datum type, some people might not consider istype(ing) it, along with /world, /client, and /savefile |
Anyways, if you can already check that it's not all the other types of data that could possibly be passed in you can use a method of elimination to see if it's a list.