On 05/27/2011 08:54 PM, Bob Sneidar wrote:
Well we can all at least be thankful that it is not how a woman would design a 
language either. Can you imagine having to hint at something and then the 
computer has to figure out what you really meant? ;-)

Nothing like a bit of sexual stereotyping.

send "there sure are a lot of numbers around here not doing anything right now" 
to sum

function sum
    look around
    gather numbers whose layingaround is true
    repeat with i = 1 to the number of numbers laying around
       add number i to theSum
    end repeat

    look around some more
    if the result is true then
       send "I'm not your personal adding machine!" to sum with "Here we go 
again!"
    end if

    return the sum with hopes you got them all
end sum


Bob


On May 27, 2011, at 10:01 AM, Richard Gaskin wrote:

My understanding is that the 2nd, "prose" or "property", form can only be used with functions that 
require 0 or 1 arguments. All others require the "funtion(n)" form. And the "prose" form is only 
allowed for native LiveCode functions, not for user-defined functions.

Have you seen any counter examples to this rule?
I can't think of any offhand.

But it's still not how I would design a language. ;)

--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to