It’s midsummer… but out weather seems like autumn! Temperature is around 12°C (I’m living in a mountain zone… but in summer is normal a temperature about 25-30°C!!!!)
So no biking (today it’s raining of course…), no walking, no out in the air activity 🙁
So reading in the forum about the BMX-NG features I started thinking about some new things I would like to have in the IDE to help the user to write faster and without time-losses.
Already my MaxIDEX X have some automatism like ‘auto-clouser’ for While, Repeat, For, Function and so on.
Now I’m thinking to have something more useful.
- an automatism to ‘force’ (FUNCTION and METHOD) to have an automatic RETURN statement (already done in my 14.7beta)
- an automatic Function/Method definition for return value (in this case :INT) … it’s a work in progress 😛
- an automatism to type faster data-type for Local, Global, Field (WIP but I’m at good point- quite!)
1 & 2 means simple something like the following
If you type
Function MyFunction()
Now MaxIDE X creates
Function MyFunction() End Function
with the next update (of course with option enabled) you’ll have
Function MyFunction:Int() Return 0 End Function
Less typing, more ‘strict’
Point 3 is something I should implement years ago!
Imagine to write this
Local btn_start:Tgadget, btn_stop:Tgadget,btn_pause:Tgadget
It’s slow… and error can rise easy.
Now imagine this
Local btn_start,btn_stop,btn_pause>>Tgadget
and automatically MaxIDE X will convert it for you. Handy, it doesn’t?
At the moment only point 2) (add of Return) is working.
More next time.