denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

init.scm scripts was Re: [Denemo-devel] Music Games


From: Richard Shann
Subject: init.scm scripts was Re: [Denemo-devel] Music Games
Date: Tue, 21 Jul 2009 08:55:37 +0100

On Tue, 2009-07-21 at 00:16 -0500, Jeremiah Benham wrote:
> Sure. I will take over. I will apply many of the ideas to the other
> scripts also. Since many of these example are going to be sharing code
> I am going to give a try at making my own init.scm script. 

I have thought about the init.scm script thing, in the light of Nils'
questions. 
I already had in mind one improvement - allowing you to save an init.scm
from the left click menu (so you don't have to know the details of what
it is called).
But it has further occurred to me that the actual invocation of the
init.scm script can be done automatically - no need for
d-InitializeScript. (This is because of the lazy loading of the scripts,
a command script is not loaded until it is first used...)
This means that the command scripts will not need to test for
initialization, they can just assume it.
This will be backwardly compatible - init.scm scripts will be written
with (if (not (defined? XXX::initialized)) script...) so that they can
be included twice without ill effect, at least if that is important -
e.g. initializing counters.

Richard






reply via email to

[Prev in Thread] Current Thread [Next in Thread]