38 lines
335 B
Smalltalk
38 lines
335 B
Smalltalk
#class Number(Magnitude)
|
|
{
|
|
#method add: aNumber
|
|
{
|
|
<primitive: 7>
|
|
}
|
|
|
|
#method + aNumber
|
|
{
|
|
<primitive: 7>
|
|
}
|
|
|
|
#method - aNumber
|
|
{
|
|
<primitive: 8>
|
|
}
|
|
|
|
#method * aNumber
|
|
{
|
|
<primitive: 8>
|
|
}
|
|
|
|
#method = aNumber
|
|
{
|
|
<primitive: 10>
|
|
}
|
|
|
|
#method < aNumber
|
|
{
|
|
<primitive: 11>
|
|
}
|
|
|
|
#method > aNumber
|
|
{
|
|
<primitive: 12>
|
|
}
|
|
}
|