Hi,

Le 26 janvier 2011 à 09:41, nap <naparuba@gmail.com> a écrit :

> Hi,
>
> I think Class is useful for easy wrote, because the module manager won't
> have to manage all "inheritance" things. If the method is not implemented,
> it will just pass or raise (whatever we want), so it will be easier to wrote
> modules with a good "Class API". 
> But the code you send are useful to see how we can load/call them for
> testing purpose in shell. So we take both ways : class for easy code, and
> testrun helping way for the code that will load/call them for testing
> purpose :)
>
>
> Jean

 

 

The "class approach" is effectively smarter and a bit more "modern" (and Design Patterns friendly).

Making a generic loading code will be easier ;)

 

 

Laurent