Okay let's go back after a long break
Studies are definitively over (

), I have 2 months free now, so let's do something great

Sorry for the long time without news: I have been horribly this year, and I couldn't take much time to work on CPLua until now.
I already created a new
mathedit component for the UI package, to input/display 2D math expressions. There are several things I'd like to add/improve, and I must write the documentation too (finally

)
But first I'd like to know what needs to be corrected in CPLua 0.9D. I know that drawing operations are a lot slower than in version 0.8, and I will take care of that

I also think that there were some issues with memory management

In the meantime, I'd like to have your opinion for some changes about the draw package. I plan to add some new useful functions like
arc(),
ellipse(),
patternline() etc, but I also think of changing the way to define the style:
Actually to draw a black rectangle and a black circle filled in white with a width of 2 pixels, one would write this:
CODE
draw.rect(x1, y1, x2, y2, 2, COL_BLACK, COL_WHITE)
draw.circle(x, y, r, 2, COL_BLACK, COL_WHITE)
I'm currently thinking of something like this:
CODE
draw.setstyle{width=2, border="black", fill="white"}
draw.rect(x1, y1, x2, y2)
draw.circle(x, y, r)
Of course there would be a
draw.getstyle() function too to get the current "default" style. And each drawing function would accept a last optional parameters, which would be a specific style overriding the default one.
For example, if you want the circle to have a width of 4 pixels instead:
CODE
draw.setstyle{width=2, border="black", fill="white"}
draw.rect(x1, y1, x2, y2)
draw.circle(x, y, r, {width=4})
It's not shorter than the code we would write in the current versions (with arguments "COL_BLACK" etc etc), but I think it is clearer and easier to remember.

I would like to have your opinion about that anyways

How, and I'm thinking of similar functions
draw.setfont{} and
draw.getfont{} too

About compressed files: There should be possible to do something like that, but it is not a real priority at the moment