in reply to Howto implement versions of object instances

Is this for backward compatibility? Or to try and cover a bad interface design ;-) (no insult intended)

Gavin.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!
  • Comment on Re: Howto implement versions of object instances

Replies are listed 'Best First'.
Re^2: Howto implement versions of object instances
by pajout (Curate) on Nov 17, 2005 at 12:14 UTC
    And to try and cover a bad interface design, too :)))
    I am not an excellent developer and I am not a clairvoyant, so I sometimes create method with inaccurate args or inaccurate interpretation of args, for instance. And discussed trick gives me freedom to improve the interface in the next versions, without affecting applications using the current one.
Re^2: Howto implement versions of object instances
by pajout (Curate) on Nov 15, 2005 at 12:04 UTC
    Backward compatibility :)
    I try to develop my mod_perl application framework, and I need coexistency of slightly different versions of it at the same apache, to support applications developed on different $VERSIONs.
      It would be much easier to run two separate mod_perl servers.
        Yes, of course, but it is not optimal in all situations. It losts memory sharing, needs httpd reconfiguring, may interfere with legacy application logic (assuming the same port of uri of family applications, for instance), multiplicates count of db connections etc.
        Thanks for reply in any case :)