Making DMDScript suit your needs

All of this is based on Walter's testscript.d from the source DMDScript distribution.

The end of the DMDScript source for the interpreters is signalled with a #

  1. Really dumb interpreter.
  2. Interaction between D and DMDScript.
  3. DMDScript on steroids! (including initial MinWin support)
  4. Same as 2, but showing an example for an Apollo window.
    compile script
    Try something like button.Caption="Another caption"
  5. Same as 1, but with a graphic front-end. Notice that IO is still through the console.
    compile script
  6. Dumb interpreter, but with graphical IO. Notice that it modifies the original DMDScript source.
    Output is sent to the lower pane. Input is done through dialog boxes.
    Try this:
                        println("i'll ask your name and then print it")
                        var name=readln("what's your name?");
                        println("hello, "+name+"!")
                    
    Here's a modified suite.ds that correctly works with this program. The sieve.ds provided in the DMDScript distribution runs flawlessly.

The non-Apollo versions (1, 2 and 3) work on Windows and Linux.

And before you ask, I don't think I'll make those samples better: they were only meant as proofs of concept.

Links:

Official D programming language site

Official DMDScript site

DigitalMars newsgroups

DSource


About Apollo

Apollo is dead right now. I mean, it works but it's incomplete and a bit buggy.
Oh, and I don't have the time right now to work on it.
And it's not cross-platform: Windows only.
And it can't be used in commercial applications (Delphi 6 PE license doesn't allow it).

If you still want it, here's what you need:

Use it if you want to, but there'll be support from me in a while (can't say how long).

Known bugs


2005-01-21 by Carlos Santander B.
For a free Gmail invite, send me an email to e-mail address
last updated 2005-02-08

Valid HTML 4.01!