Question about Object Names

Todd Geist todd at geistinteractive.com
Fri May 27 11:09:51 EDT 2011


On Fri, May 27, 2011 at 7:57 AM, Richard Gaskin
<ambassador at fourthworld.com>wrote:

> For example, you can call the numToChar function using either of these two
> forms:
>
>  numToChar(128)
>  the numToChar of 128
>
> Meanwhile, the sum function can only be called using function syntax:
>
>  sum(1,2,3) -- works
>  the sum of "1,2,3" -- throws an error


Is there a pattern at all in when one is form is not allowed?

In the example you gave, the sum function takes a list of numbers, where the
numToChar takes a single item.

Todd





Todd Geist
------------------------------
geist interactive <http://www.geistinteractive.com>
805-419-9382



More information about the use-livecode mailing list