Originally Posted by Magtheridon96
Well, honestly, you made some pretty good points here.
But come on, who would need to extend a Dialog struct? :/
I know you're being imaginative and thinking of all these scenarios in which you can actually do something pretty cool with it, but.. well, I don't know what to say.
Maybe he can include a textmacro and use delegates so you can have the results obtained from extending without actually extending ^.^
I already gave examples why you would extend this in particular.
But it's not only about a Dialog but about easy extendability in general.
Why restrict it without any good reason? And if you do, do it via extends array, so that i atleast get a compile-time error.
Textmacro + delegate is no real option.
Textmacros are for repetitive structures of code.
Delegates are cool, but too restricted in vJass. They are good for reusing but since they don't fulfill interface requirements you can't really use them in your polymorph code without giving up some of the good things you get from delegates. Modules work better in that regard under vJass (that is, reusing code which fulfills interface rules).
But both have there uses. They aren't exclusive.