Bignums: you may restrict integers to a certain range, making them fixnums. Integers which are not fixnums are bignums.
Actually , we do not need worry about it. The CL implement will choose the right representation for us.CL-USER> (type-of (1+ most-positive-fixnum))
(INTEGER 536870912)
CL-USER> (typep (1+ most-positive-fixnum) 'bignum)
T
(INTEGER 536870912)
CL-USER> (typep (1+ most-positive-fixnum) 'bignum)
T
No comments:
Post a Comment