Re: [M-dev]Programming language
Re: [M-dev]Programming language
- Subject: Re: [M-dev]Programming language
- From: Dietrich Epp <email@hidden>
- Date: Mon, 10 Mar 2003 17:13:34 -0800
On Sunday, Mar 9, 2003, at 03:25 US/Pacific, tiennou wrote:
I will try embedding Lua in place of Python, because of two things:
Python requires an external library 'PythonCore', and is much, much
bigger that Lua.
Lua can be directly embedded in AO, and it's smaller and easier to
embed.
The only thing that tickles me is the syntax:
Here is Python:
<Tabcleaner.py>
Here is Lua:
Just want to put in an important bit about Lua: The 'local' keword.
Contrary to what is intuitive, common sense, and just plain better, you
have to declare local variables in Lua. You don't have to declare
global ones though, which just doesn't make any sense at all.
Python *can* be embedded in AO - just as easily as Lua. Wouldn't Lua
need an external Library too? Isn't that how you link things? You
need an external library even to run C code.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.