开发者

Ways to implement Flex [Bindable] in other languages

As you may know, ActionScr开发者_StackOverflow社区ipt allows you to mark a variable as [Bindable], causing any changes to that variable to have immediate effect all over your application. Pretty neat.

How would you implement this feature in your favourite programming language? My first guess was to use events or wrapper classes, but I couldn't come up with a clean solution to this. I am especially interested in doing this with Python or JavaScript.


You'd use the Observer Pattern.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜