Issue Details (XML | Word | Printable)

Key: BOO-1090
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Allow specific types for getter/property AST attributes

Created: 23/Oct/08 09:22 AM   Updated: 16/Jan/09 10:25 AM   Resolved: 23/Oct/08 10:01 AM
Return to search
Component/s: None
Affects Version/s: 0.8.2
Fix Version/s: 0.9

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide

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:01 AM

Landed in rev. 3062


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)]