DQuick a GUI Library (prototype)

Jacob Carlborg doob at me.com
Wed Aug 21 04:42:27 PDT 2013


On 2013-08-21 11:50, Flamaros wrote:

> I am not sure to understand correctly your suggestion, I don't see how
> the application will be able to create GUI items from "foo.d". Need
> "foo.d" embed a code to serialize the GUI items structure to a file that
> the application will load?

This is a complete example:

http://pastebin.com/2C4Z2wFR

Which will print this:

http://pastebin.com/Tj1vVHsF

If we look at the code above, evertyrthing below the "main" function 
would be in a separate module, "dquick.dls" for example. The string 
"code" contains the D script, corresponding to the Lua code. That would 
be in its own file, imported using:

import("filename.d");

The tool currently executing the Lua code would instead generate a new 
file with the "main" and "executeScript" functions as above. Then it 
will proceed as I described in my previous post.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list