It is often desirable to have a property with a type less specialized than the underlying field type.
Currently we have to get back to the long syntax to do that but we should be able to do that :
[getter(Foos as Foo*)]
_foos = List[of Foo]()
[getter(Actions as ICollection[of Action])]
_actions = List[of Action]()
Description
It is often desirable to have a property with a type less specialized than the underlying field type.
Currently we have to get back to the long syntax to do that but we should be able to do that :
[getter(Foos as Foo*)]
_foos = List[of Foo]()
[getter(Actions as ICollection[of Action])]
_actions = List[of Action]()
Avishay Lavie added a comment - 23/Oct/08 09:59 AM Great idea. Related: we also need a way to define accessibility using getter/setter/property macros.
[getter(Foos as Foo*)]
[setter(protected Foos as List of Foo)]
_foos = List of Foo()
Cedric Vivier added a comment - 23/Oct/08 10:02 AM - edited Avish, we can already define accessibility with the Protected flag.
[getter(Foo, Protected:true)]
Great idea. Related: we also need a way to define accessibility using getter/setter/property macros.
[getter(Foos as Foo*)] [setter(protected Foos as List of Foo)] _foos = List of Foo()