Stories
Slash Boxes
Comments
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)

koschei
  useperl@dellah.org
http://eh.org/~koschei/

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 [dellah.org] if you want bits of code by me. Also see dellah.org [dellah.org] for most of them in action.

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

And everybody's journals [perl.org] (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.

Eh?

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.