- edited description
Optional initial expression for collection attributes
Issue #232
resolved
Collection attribute declarations could have the initial expression as an optional part of the syntax. A default initial expression would be just calling the constructor of the collection type with no argument.
For example:
coll LinkedList<Integer> N1.c() with add;
would be equivalent to
coll LinkedList<Integer> N1.c() [ new LinkedList<Integer>() ] with add;
Comments (3)
-
reporter -
reporter - edited description
-
reporter - changed status to resolved
- Log in to comment