On 15.11.2010, at 01:08, Domingo Alvarez Duarte wrote:

> I'm thinking of include lua script to fluid to allow more flexibility and
> customization of code generation, my initial idea is to have one new tab
> "Script" on widget_panel with two tabs: "Project", "User".
> 
> "User" scripts are saved to user preferences and is availlable for all
> projects, "Project" is saved to project fluid file and is specific to the
> project, the way lua works will be easy to merge both, first load the user
> script and after project script to allow overwrite of user scripts for the
> project.
> 
> How it can be used ?
> 
> One idea is to start an entry in some/any input fields with a prefix for
> example "=myluascript widget_name" and when fluid will generate code it
> checks to see if there is a lua function with the given name and if found
> pass to it the generated code and write whatever that function returns,
> also fluid can call special named scripts at specific points of code
> generation to allow more control for the users.
> 
> Someone already did something like this ?

This is a very nice idea (I like the Excel syntax!). However I would suggest 
Python or NewtonScript, of course.

And so the language war begins... .

Seriously though, for this to be generally useful, we would have to either use 
a language that is available on all platforms, or include the interpreter, like 
we do with the image file formats.

 - Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to