Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

koschei (147)


Um. Me. Iain Truskett. Can be found as either Spoon or Koschei around the place, and as Braxiatel in rare circumstances. Um. Cool. Ta.

My perl svn repository [] if you want bits of code by me. Also see [] for most of them in action.

My friends [], foes [], fans [], and freaks []. And you can see what my friends are journalling [].

And everybody's journals [] (in order of updating).

Journal of koschei (147)

Monday April 23, 2001
07:22 AM

An interesting problem with inheritance...

[ #82 ]

... is that things just stop working without warning and with errors in the wrong place if you mess up your superclass.


Well, say you have a Review::Book class which is a subclass of Review::Generic and you get a syntax error in Review::Generic such that you try calling methods that are in the superclass by inheritance from the subclass, you will get the informative error one Can't locate object method "title" via package "Review::Book" at ./process line 38 which doesn't really help, does it?

Takes a little while to work out such things if you've not encountered them before.