Not sure it's worth the trouble, but did you have some particular technique
in mind?
I think I might have asked about this before, but if MXML had a way to do
constructor injection it could also help frameworks like Mate so they don't
need tags with attributes called arguments.
On Fri, Jul 23,
For some setters you can test against null to know if the value was previously
set, otherwise you’d need flags. Then ignore or throw an error.
On 7/24/10 8:04 AM, Richard Rodseth rrods...@gmail.com wrote:
Not sure it's worth the trouble, but did you have some particular technique in
Interesting. I haven't used that one either.
The docs emphasize the addEventListener capability, which I guess
distinguishes this from plain old Object, which can also hold arbitrary
properties.
http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html
As an aside, I would love to have
ObjectProxy dispatched change events when properties change. Object does not.
If you write your VO’s to have only get functions, they are effectively
immutable.
On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com wrote:
Interesting. I haven't used that one either.
The docs emphasize
Yes, obviously. But not the same thing.
If you write your VO’s to have only get functions, they are effectively
immutable.
On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com wrote:
Interesting. I haven't used that one either.
The docs emphasize the addEventListener
Getting a little off-topic, but in case anyone's interested:
http://www.developer.com/lang/other/article.php/3874551/Clojure-Immutability-at-the-Language-Level.htm
One Flex-specific wrinkle is that if you define a class with a 1 argument
constructor and getters only, you can't instantiate it in
You could write your set functions to be write-once.
On 7/23/10 11:35 AM, Richard Rodseth rrods...@gmail.com wrote:
Getting a little off-topic, but in case anyone's interested:
http://www.developer.com/lang/other/article.php/3874551/Clojure-Immutability-at-the-Language-Level.htm
One
Hi Mark
In the fairly large applications I've worked on, I've not had occasion to
use Proxy, if you mean this:
http://livedocs.adobe.com/flex/3/langref/flash/utils/Proxy.html
Basically it lets you create an object that poses as something else,
possibly supplementing it. For example, in the
ObjectProxy is a generic VO. It is dynamic and can hold any properties and
values. And it is slow. Best to create custom Vos that are strongly typed.
On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com wrote:
I'm trying to wrap my feeble brain around these concepts.
Are they the
9 matches
Mail list logo