Le dimanche 01 février 2015 à 01:24 -0800, alex codoreanu a écrit :
> Thanks Milan,
>
>
> I defined Element as you suggested and created
>
>
> data=(Element, 2)
What is this line supposed to do? All it does now is assign a tuple
containing the Element type, and the integer value 2.
If you want to create an Element instance, you should do e.g.:
element = Element("a name", [1, 2], [2, 3])
and then to create a list holding two Elements, and fill the first value
with the just created element:
data = Vector(Element, 2)
data[1] = element
Accessing members:
data[1].lambda
Regards