Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Tetsuro KURITA <email@hidden>
- Date: Wed, 11 Aug 2010 10:35:11 +0900
> I'm positive, but we should at least go through the AppleMods loader as well, haven't had a chance of looking at it yet.
I agree with you.
We should talk about AppleMods more.
It's a great product that proved practical module loading system for AppleScript.
On the other hand, AppleMods have existed from the beginning of 2000, and
yet it looks that AppleMods is not widely used. Also it looks that the programing
using libraries is not common in AppleScripters.
This is the problem we must tackle.
For the spread of programing using libraries in AppleScripters, it is required
one standard loader preferred with many people.
I thought AppleMods is too complex. It have too many functions.
Also too much coding to load modules are required.
Then I have developed ModuleLoader.
It is similar to simplified AppleMods. But there was a break through that
the coding to load modules are minimized as follows.
-----------------------------------------------
== Comparison of codes to load "ModuleA" between AppleMods and ModuleLoader
=== AppleMods ===
property _Loader : AppleMods Loader
property ModuleA : missing value
on __load__(moduleLoader)
tell moduleLoader
set ModuleA to loadModule("ModuleA")
end tell
end __load__
property _ : _Loader's initscript(me)
=== ModuleLoader ===
property ModuleA : module
property loader : boot (module loader) for me
-----------------------------------------------
I belive that ModuleLoader could reach the level which almost people can
adapt.
But ModuleLoader droped many features form AppleMods. There are many different
behavior. I don't know whether my decision was right or not.
=======================================================
Tetsuro KURITA
E-mail: email@hidden
http://homepage.mac.com/tkurita/scriptfactory/en/
=======================================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden