Built-in functions

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
nextyoyoma
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 37
Joined: Sat Oct 06, 2012 6:29 am

Built-in functions

Post by nextyoyoma » Mon Sep 23, 2013 7:16 pm

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.

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Built-in functions

Post by Klaus » Mon Sep 23, 2013 7:48 pm

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)

nextyoyoma
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 37
Joined: Sat Oct 06, 2012 6:29 am

Re: Built-in functions

Post by nextyoyoma » Mon Sep 23, 2013 8:45 pm

@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"?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9867
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Built-in functions

Post by FourthWorld » Mon Sep 23, 2013 9:07 pm

The LiveCode engine is written in C++. The source is here:
https://github.com/runrev/livecode
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Talking LiveCode”