Looks like C# to me... at least, that's how the array accessor stuff works.
The syntax is nice, sure, though I don't really mind the current style of
properties. I do find the proxy stuff to be irritating to extend (if you
want customize array access [ ]), and do prefer the C# approach better.
Troy.
On 3/29/07, Jeffry Houser <[EMAIL PROTECTED]> wrote:
I thought AS3 was made to be ECMA compliant. As such I wasn't expecting
a new rendition of ActionScript anytime soon. The question I ask myself, is
this supported ECMAScript syntax? Is it supported in any language? ( I
actually don't know ).
At 03:36 PM 3/29/2007, One Person wrote:
I would like to make a request for an upgrade to AS4 and I'm not sure
where to send it. So here it is. If there is a better place, please
let me know.
Currently if I want to create properties I have to do this:
public function get useStringCache() : Boolean
{
return _useStringCache;
}
public function set useStringCache( value:Boolean ) : void
{
_useStringCache = value;
}
I would like to see it changed to this:
public property useStringCache:Boolean
{
get
{
return _useStringCache;
}
set
{
_useStringCache = Value;
}
}
where 'Value' is always the value that is being set.
I would also like to have a way to create an indexer like this:
public property this[ key:String ]:int
{
get
{
return _intArray[ key ];
}
set
{
_intArray[ key ] = Value;
}
}
--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: < http://www.dot-com-it.com>
My Podcast: < http://www.theflexshow.com>
My Blog: < http://www.jeffryhouser.com>
Connecticut Macromedia User Group: < http://www.ctmug.com>