Optional initial expression for collection attributes

Issue #232 resolved
Jesper Öqvist created an issue

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)

  1. Log in to comment