Ticket #205 (closed defect: fixed)
properties using 'from var' should also search for a __name
Reported by: | hopscc | Owned by: | Chuck |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
Its not uncommon to want property backing variables as private declared minimally using the __name (double underscore prefix) shortcut.
var __buttonCount = 0 pro buttonCount from var
Currently if use '<name> from var' syntax as above for an automatic match the compiler gives an error regarding a missing _name
There is no variable named "_buttonCount" to match the property "buttonCount"
For completeness the name lookup using 'from var' should also look for a __name if the search for a _name fails.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.