Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^5: A Growing Dislike for SQL-OOP Mappers

by perrin (Chancellor)
on Aug 22, 2005 at 23:16 UTC ( #485789=note: print w/replies, xml ) Need Help??

in reply to Re^4: A Growing Dislike for SQL-OOP Mappers
in thread A Growing Dislike for SQL-OOP Mappers

There's nothing special about new() in Perl -- it's the same as any other method. You can override it, and you will have the same trials and tribulations with overriding it that you would have with any other inheritance scenario. It still sounds like you're complaining that you don't like OOP to me.
  • Comment on Re^5: A Growing Dislike for SQL-OOP Mappers

Replies are listed 'Best First'.
Re^6: A Growing Dislike for SQL-OOP Mappers
by TimToady (Parson) on Aug 23, 2005 at 00:11 UTC
    Well, I think it's a real problem for the dispatcher not to know the difference between abstract interface methods and infrastructural methods, which is why Perl 6 introduces the concept of "submethods" that are callable from outside the class, but only if there's an exact type match on the invocant. Otherwise the dispatcher keeps looking for a more appropriate method or submethod to dispatch to.

    (There's also the concept of completely private methods that aren't visible from outside the class at all, but that's really a different beastie altogether.) Anyway, I think use of submethods would probably solve the first problem of the OP.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://485789]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-01-19 16:06 GMT
Find Nodes?
    Voting Booth?