Page 1 of 1

Built-in functions

Posted: Mon Sep 23, 2013 7:16 pm
by nextyoyoma
Is it possible to view the code for the build in functions, such as toUpper and intersect? I would love to be able to show my students how these functions work.

Re: Built-in functions

Posted: Mon Sep 23, 2013 7:48 pm
by Klaus
Yes, it is:
1. Open the dictionary -> menu: Help
2. in the new window: Click "Function" on the left side and on the top right side you will see all functions listed.
3. Click one line in the list to see info about it in the field at the bottom right.
8)

Re: Built-in functions

Posted: Mon Sep 23, 2013 8:45 pm
by nextyoyoma
@Klaus,

Thanks, but I was looking for the actual CODE for these functions.

For example, I can open up the LiveCode app bundle and go to Contents>Resources>Tools>Toolsets and get a look at the actual stack for the answer dialog. Is there a stack somewhere that defines functions like "toUpper" or "intersect"?

Re: Built-in functions

Posted: Mon Sep 23, 2013 9:07 pm
by FourthWorld
The LiveCode engine is written in C++. The source is here:
https://github.com/runrev/livecode