Next: , Previous: , Up: built-in booleans   [Contents][Index]


6.6.2 Type of true booleans

Core Type: <true>
Parent Type: <boolean>

Type of the boolean value #t.

Constructor on <true>: <true> type-constructor obj

Return #t if obj is #t.

(new <true> #t)         ⇒ #t
(new <true> 12)         error→ type violation
Type predicate on <true>: <boolean> type-predicate obj

The type predicate is true?. Return #t if obj is #t.

(is-a? #t <true>)       ⇒ #t
(is-a? #f <true>)       error→ type error
Hash function on <true>: <non-negative-fixnum> hash-function true

The hash function is boolean-hash.

(hash #t)       ⇒ 1