Re: Modules

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu