hi nicolas,

how hard would it be to create a scope method for functions? the method 
would take whatever you give it and put that function in to that scope. 
for example,

class x {
    function setFocusHandler() {
        // label.owner = this;
        // set scope using the scope function part of Function class
        label.onKillFocus.scope(this)
        label.onKillFocus = function() {
            trace("this="+this) // scope is class x
        }
    }
}


Nicolas Cannasse wrote:

>Hi folks,
>
>The new still-unamed language specifications have been updated at
>http://ncannasse.free.fr/files/flexible.html . It now includes enumerators,
>Dynamic type parameters and a beginning of grammar rules.
>
>I would like to get comments about the design of the language : what are the
>features you've been dreaming about ? How should look for you the language
>you'll be happy to write in everyday at work ?
>
>It's an open discussion, so bring  your ideas in . I have my own ones, but I
>think opening the design to everybody will result in a better result in the
>end.
>
>Have fun !
>
>Nicolas
>
>
>_______________________________________________
>osflash mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>
>  
>


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to