You're not misreading. But when I talk about introducing new types, I am
specifically talking about adding new types to an existing set of
polymorphic objects. The point is that as long as you are using a factory,
you can usually add a new type to handle a new situation without having to
change existing code. If you aren't using a factory, then you're going to
have to change existing code too.

On 10/12/07, jalpino <[EMAIL PROTECTED]> wrote:
>
>
> Maybe I misread the context of your example, I thought you
> specifically talking about introducing new types into an existing code
> base
>
> " ..The constructor is run on the User class, and I get an
> instance back.
>
> Now imagine I have done this in 1000 places in my code. And now I
> figure out
> that this needs to change. For example, maybe I have two kinds of
> users,
> RegisteredUser and UnregisteredUser. hmmm....now I'm in trouble. .. "
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to