I don't think this will be implemented, AddElement() is a function that
returns a pointer, so the compiler had to deside for assignment or pointer returning,
that would make compiling more complicated than necessary.
Structure x
a.l
b.l
c.s
d.d
EndStructure
z.x
z = {1,2,"three",4.5}
z = {,,"three"} ;to set just the third element
;or
NewList y.x()
AddElementAssign(y(),{,z\a,"three"})
Curly's are a bit harder to see though and this would get crazier with arrays and unions and such.
Trond wrote:So what? It's not needed to set the entire structure. You can't do that even without the AddElement().
that's what I said more than once.
an AddElementX() = bla is useless, since you can never use it for structured elements.
and I would say, 99% of LinkedLists are structured.
in fact, I see no use in a List without a structure.
Trond wrote:Then Variable = Value is useless also, since you can't use it for structures?
*sigh* what is you problem?
1. a complex structure cannot be filled with "="
2. the main use of LinkedLists is to use structured Lists.
=> an AddElement() = value is almost always useless.
Why is it almost useless? It saves 1 line. Which is exactly the same number of lines that's saved for unstructured lists. So it's just as useful. It will also save more lines in case you do not need to initialize all the structure members.