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