[Tutor] Re: Factory classes (etc)

Erik Price erikprice@mac.com
Wed, 4 Sep 2002 09:52:17 -0400


On Wednesday, September 4, 2002, at 09:19  AM, Arthur wrote:

> But it seems I can leave my 40 odd classes intact, and create
> "consolidating"
> Factory classes with which the user interacts, and which will
> (hopefully, eventually) create the appropriate instances based on 
> argument
> signature.
>
> Whereas Factory classes do not directly solve my problem, which I am
> calling a mothod overloading issue, I think it does point to a 
> significantly
> better
> approach than the path down which I had been going.

Python doesn't let you do method overloading?  On second thought, that 
makes sense since it's not strictly typed (how is Python going to know 
the difference between Constructor(String a, int b) and Constructor(int 
a, String b)).  I hadn't considered this before.


:(



Erik





--
Erik Price

email: erikprice@mac.com
jabber: erikprice@jabber.org