functionNames, commandNames, etc. not returning complete list

Kay C Lan lan.kc.macmail at gmail.com
Sun May 11 21:07:59 EDT 2014


On Mon, May 12, 2014 at 7:12 AM, Robert Brenstein <rjb at robelko.com> wrote:

>
> However, many entries in the dictionary list are synonyms and those are
> not included by the functionNames, so the discrepancy is not so big.
>  <http://lists.runrev.com/mailman/listinfo/use-livecode>
>

That's interesting for two reasons. Firstly, the Dictionary comments for
BOTH commandNames and functionNames say:  "including synonyms."

Secondly, and most importantly, the described use of these functions are:
"to check whether a particular command/function already exists in LiveCode,
to avoid using a reserved word for your own custom handlers". The Example
is to take the result of 'the command/functionNames' and check whether the
name you want to use is among the lines of the result; so it would seem
pointless that 'open' not be there because it's a synonym for 'go'.

open and go are both there, as should all synonyms. If you discover ANY
commands/functions missing then a Bug Report should be submitted.



More information about the Use-livecode mailing list