in reply to Overload abuse or is it just me?

I'm against using overload, in nearly all cases. It has caused me too many bugs when other people's modules (Class::DBI and Exception::Class, for example) use it, and those bugs are very hard to track down.

Replies are listed 'Best First'.
Re^2: Overload abuse or is it just me?
by salvix (Pilgrim) on Mar 17, 2006 at 19:13 UTC
    Do you mean that your classes were using overload and other modules like Class::DBI ended up using your overloaded operators (thus, causing bugs)?

    That's interesting, and it's also another good reason not to use overload.

      No, that isn't what I mean. I mean that using objects from other classes in a specific context would give unexpected results because of overloads on conversion to strings or numbers.
        Oh, I got it... So you mean, for example, Class::DBI overloading "" to return the ID of the object, right? Thanks.