• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [M-dev]Programming language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: Grep Support in Cocoa
  • Next by Date: Re: Cocoa friendly Quicktime APIs?
  • Previous by thread: Re: NSTextField
  • Next by thread: localization
  • Index(es):
    • Date
    • Thread