Quote:
Originally Posted by WhiteDragon
I'm not a really a fan of the syntax you're suggesting Inverness. All subvariables are referenced the same way with all the objects, there is no reason to adopt that syntax simply because a few other languages use it.
Technically an Array is a subtype of a TStaticVar already, although I'm not sure if the engine changes how it handles them (hash, linked list, etc). I'm not sure if you could still access the variables with the subvariable syntax either, but their might be a (undocumented) way to.
|
This would apply to objects, not arrays. Technicalities are irrelevant in this case.
The new syntax would show how you intend to use the object. If we did it like this, then I would never have to use the ugly
var.(@ "something") because you have a more proper way to mimic dynamic variables.