[Gambas-devel] Gambas Synthax suggestion
Fabien Bodard
gambasfr at ...4...
Sun Nov 27 15:50:31 CET 2005
'proposition de syntaxe pour tableau d'objet
Synthax proposition for spécific class object array...
somtime i need to initialize a classe with an array of instance to another
class like that :
' Gambas class file
PUBLIC vertex AS NEW Object[]
PUBLIC SUB _New()
DIM i AS Integer
DIM o AS CVertex
'Make an Array of three vertices
FOR i = 0 TO 2
o = NEW CVertex
vertex.Add(o)
NEXT
END
I there a way to have someting like :
PUBLIC Vertex as New CVertex[3]
'proposition d'encapsulage des instanciation
Syntaxe Proposition for new intance in add subs...
like :
DIM o AS CVertex
o = NEW CVertex
vertex.Add(o)
I think it can be set with :
vertex.Add(NEW CVertex)
'proposition de déclaration de varable linéaires
Linear Variable déclarations...
Actually too long to do, mabe Not simple to synthetize...
Is it possible to use a synthaxe like the c one ?
ex:
DIM x, y, z , u, v as Float
DIM NumTriangle as Integer
But the rule is one row by data type !
Say me what you think about that...
Regards,
Fabien Bodard
More information about the Devel
mailing list