Re: First-class procedures in AS
Re: First-class procedures in AS
- Subject: Re: First-class procedures in AS
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 17 Dec 2003 20:32:23 -0800
At 09:42p -0500 12/17/2003, Jim Witte didst inscribe upon an
electronic papyrus:
Does Applescript allow you to compile procedures at runtime and
treat them as first-class objects? I thought an interesting (if
seemingly useless, except perhaps as a CS independent study) project
would be to try to implement a subset of Scheme in AppleScript..
I'd probably have to skip "native" continuations as I'm sure they're
not supported while running AS code, but if I broke AS code down
into steps in an interpreter, I could implement them in that
context. (Of course, I wouldn't *need* first-class functions, but
they would be nice)
You can certainly create objects, since AS has OOP support; however
they won't syntax-color like commands which have terminologies
defined, and you can't set up optional parameters. So that's probably
not "first-class"...
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.