1. Modules

I was wondering whether it is possible to select at execution which files to
included. What I try to do is to include just after execution the files I
want to include. Thus when I write for example SPSS (a statisticle package)
I want to select at start-up the modules (math, geographical, diagrams) I
want to include only include the files selected. This will give you the
possibility to extend the functionallity of the program by just adding a
module in stead of (re)compiling the whole package.

The problem here is that the include-statement doesn't accept sequences. So
what I want to do is something like this:


sequence module

module = "diagrams.mod"
include module



I hope this make sense.

Martin Schut

new topic     » topic index » view message » categorize

2. Re: Modules

Martin,

You might want to look in the archives on the Euphoria web site for a =
package called Dynaminc. By including a temporary file which is actually =
created during execution, it offers a workaround for the situation. I've =
looked at it before, and from what I remember it seemed well documented; =
it shouldn't be difficult to use at all.

Hope this helps,


Rod Jackson

----------
From:   M. Schut[SMTP:m.schut at TWI.TUDELFT.NL]
Sent:   Wednesday, May 05, 1999 12:48 PM
To:     EUPHORIA at LISTSERV.MUOHIO.EDU
Subject:        Modules

I was wondering whether it is possible to select at execution which =
files to
included. What I try to do is to include just after execution the files =
I
want to include. Thus when I write for example SPSS (a statisticle =
package)
I want to select at start-up the modules (math, geographical, diagrams) =
I
want to include only include the files selected. This will give you the
possibility to extend the functionallity of the program by just adding a
module in stead of (re)compiling the whole package.

The problem here is that the include-statement doesn't accept sequences. =
So
what I want to do is something like this:


sequence module

module =3D "diagrams.mod"
include module



I hope this make sense.

Martin Schut

new topic     » goto parent     » topic index » view message » categorize

3. Re: Modules

Martin Schut writes:
> The problem here is that the include-statement doesn't
> accept sequences. So what I want to do is something
> like this:
> sequence module
> module = "diagrams.mod"
> include module

I'm hoping, in the next major release, to make improvements
in the general area of "namespaces", includes, binding etc.

Meanwhile, you can do something like:

   module = "diagrams.mod"  -- or whatever you like
   system("copy " & module & " temp.e", 2)
   include temp.e

It's not as elegant as you'd like, but it will work,
provided you don't bind your program into a .exe.
At bind-time, the binder will replace "include temp.e"
with the current temp.e file, so overwriting temp.e
at run-time will have no effect.

Regards,
     Rob Craig
     Rapid Deployment Software
     http://members.aol.com/FilesEu/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu