AGS Development > Editor Development
Improving The AGS Scripting Language
Calin Leafshade:
Morning gents,
So AGS.Native has been around for a few weeks now and I've spent a few hours going through the compiler.
I'll be honest and say i don't really understand a lot of it due to all the assembly required but I think we should make a conscious effort now to improve the scripting language.
I think we should start by adding the ability to reference custom structs and pass them as parameters. This addition would essentially make AGS capable of creating full (read useful) OOP constructs.
Does anyone have any insight on how hard this would be? AGS can already create managed objects and already has a pool for them since they can be created using plugins so it seems like there isnt that much more to do.
Any thoughts?
Alan v.Drake:
I don't have enough time to help but I'll cheer you on.
- Alan
monkey_05_06:
The biggest reason that CJ ever stated for not doing this was simply that the save game files could possibly become invalidated...but I see no difference between custom struct pointers and managed struct pointers in this case when save games can reference static custom struct instances just fine...
I think it simply was never enough of a priority, because there are SEVERAL ways of accomplishing the same end-result. It would certainly make design-time better for programmers though (rewrite half my modules? here I come!).
Just make sure we can create dynamic arrays of pointers to custom structs. Coz, y'know, we need those.
Also, dynamic arrays within structs.
Also, dynamic array length members.
Get busy dude!! :P
Terrorcell:
Also, the 'const' keyword:
--- Code: Adventure Game Studio ---struct foo { int data; };int a = 10, b = 30;const int c = a * b; // const would be sooo handy, or at least let 'readonly' act the same as constfoo arr1[c];foo arr2[a * b]; Instead of having to use #define (could not use #define if we did not yet know the value of a and/or b before declaring the arrays).
AND everything that monkey said. All of it.
Cheers :tongue:
Ryan Timothy:
ArrayList.
That would be the ultimate addition along side the ability to pass custom structs as pointers.
Navigation
[0] Message Index
[#] Next page
Go to full version