Back: SingletonProxy-saving and restoring
Up: Class reference
Forward: SmallInteger-built ins
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.130 SmallInteger

Defined in namespace Smalltalk
Category: Language-Data types

6.130.1 SmallInteger: built ins  (instance)
6.130.2 SmallInteger: builtins  (instance)


6.130.1 SmallInteger: built ins

* arg
Multiply the receiver and arg and answer another Number

+ arg
Sum the receiver and arg and answer another Number

- arg
Subtract arg from the receiver and answer another Number

/ arg
Divide the receiver by arg and answer another Integer or Fraction

// arg
Dividing receiver by arg (with truncation towards -infinity) and answer the result

< arg
Answer whether the receiver is less than arg

<= arg
Answer whether the receiver is less than or equal to arg

= arg
Answer whether the receiver is equal to arg

== arg
Answer whether the receiver is the same object as arg

> arg
Answer whether the receiver is greater than arg

>= arg
Answer whether the receiver is greater than or equal to arg

\\ arg
Calculate the remainder of dividing receiver by arg (with truncation towards -infinity) and answer it

asFloat
Convert the receiver to a Float, answer the result

asObject
Answer the object whose index is in the receiver, fail if no object found at that index

asObjectNoFail
Answer the object whose index is in the receiver, or nil if no object is found at that index

bitAnd: arg
Do a bitwise AND between the receiver and arg, answer the result

bitOr: arg
Do a bitwise OR between the receiver and arg, answer the result

bitShift: arg
Shift the receiver by arg places to the left if arg > 0, by arg places to the right if arg < 0, answer another Number

bitXor: arg
Do a bitwise XOR between the receiver and arg, answer the result

quo: arg
Dividing receiver by arg (with truncation towards zero) and answer the result

~= arg
Answer whether the receiver is not equal to arg

~~ arg
Answer whether the receiver is not the same object as arg


6.130.2 SmallInteger: builtins

at: anIndex
Answer the index-th indexed instance variable of the receiver. This method always fails.

at: anIndex put: value
Store value in the index-th indexed instance variable of the receiver This method always fails.

basicAt: anIndex
Answer the index-th indexed instance variable of the receiver. This method always fails.

basicAt: anIndex put: value
Store value in the index-th indexed instance variable of the receiver This method always fails.




This document was generated on May, 12 2002 using texi2html