Can someone tell me what it is ( _: )
#6

It's a tag override. It basically removes the tag of a variable if it has one. This is mostly used to get rid "argument type mismatch" warnings when variables with non-standard tags (e.g. Text:, Db_result:, ...) are passed to functions like format or CallLocalFunction.

If you look up the definition of those two functions you will notice that it has a parameter:
Код:
{Float,_}:...
This means that it accepts variables that are either Float or have no tag. Trying to pass any of the types mentioned above will result in a warning.
Reply


Messages In This Thread
Can someone tell me what it is ( _: ) - by RaeF - 22.12.2014, 09:17
Re: Can someone tell me what it is ( _: ) - by CalvinC - 22.12.2014, 10:22
Re: Can someone tell me what it is ( _: ) - by Kyance - 22.12.2014, 10:52
Re: Can someone tell me what it is ( _: ) - by Threshold - 22.12.2014, 11:08
Re: Can someone tell me what it is ( _: ) - by Evocator - 22.12.2014, 11:37
Re: Can someone tell me what it is ( _: ) - by Vince - 22.12.2014, 11:38
Re: Can someone tell me what it is ( _: ) - by RaeF - 22.12.2014, 12:07

Forum Jump:


Users browsing this thread: 5 Guest(s)