This project has moved. For the latest updates, please go here.

Class Character

superclass: PrimitiveValue;
instanceArchitecture: #Char

Page still under construction; sorry about that.

Instance Methods

protocol: #'comparing-double dispatch' method:
[## inverseCompareToCharacter: aChar

        ^(aChar asInteger - self asInteger) sign
];

protocol: #'comparing-double dispatch' method:
[## inverseCompareToSmallInteger: anInteger

        ^(anInteger - self asInteger) sign
];

protocol: #'comparing-double dispatch' method:
[## inverseCompareToFloat: aFloat

        ^(aFloat asInteger - self asInteger) sign
];

protocol: #'comparing-double dispatch' method:
[## inverseCompareToDouble: aDouble

        ^(aDouble asInteger - self asInteger) sign
];

protocol: #converting method:
[## asCharacter

        ^self
];

protocol: #converting method:
[## coerce: operand

        ^operand asCharacter
]

Last edited Jun 6, 2014 at 7:20 AM by Strategesis, version 3