Home Segments Index Top Previous Next

590: Mainline

On the other hand, suppose that you use a < message with instances of a class that is a subclass of the Magnitude class, and you have not yet implemented < for that class:

MagnitudeSubclass class definition 
Magnitude subclass: #MagnitudeSubclass 
  instanceVariableNames: '' 
  classVariableNames: '' 
  poolDictionaries: '' 
Workspace
MagnitudeSubclass new < MagnitudeSubclass new 

You would see a screen such as the following:

Evidently, there is something special about the Magnitude class, such that you are informed that you are expected to equip all subclasses of Magnitude with a definition for <.