In the PureMVC documentation, I found two very strange pieces of code:
public function get resultEntry( index:int ) : SearchResultVO { return searchResultAC.getItemAt( index ) as SearchResultVO; }
and a bit later:
var item:SearchResultVO = searchProxy.resultEntry( 1 );
(found in Best Practices [English] , bottom of page 38 and top of page 39)
I always thought that getters should not accept a parameter (and the FDT really tells me that "Parameters for getters are not allowed"), so I wonder what is going on here.
Is it just a bad typo (intended to be just a normal function without "get") or some kind of hidden function / voodoo?
source share