Next: , Up: checks   [Contents][Index]


3.1 Checking value types

System Operation: ##sys#check-blob ?OBJ
System Operation: ##sys#check-blob ?OBJ ?LOC

Check if ?OBJ is a blob. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-byte-vector ?OBJ
System Operation: ##sys#check-byte-vector ?OBJ ?LOC

Check if ?OBJ is a bytevector. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-pair ?OBJ
System Operation: ##sys#check-pair ?OBJ ?LOC

Check if ?OBJ is a pair. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-list ?OBJ
System Operation: ##sys#check-list ?OBJ ?LOC

Check if ?OBJ is a list. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-string ?OBJ
System Operation: ##sys#check-string ?OBJ ?LOC

Check if ?OBJ is a string. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-number ?OBJ
System Operation: ##sys#check-number ?OBJ ?LOC

Check if ?OBJ is a number. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-fixnum ?OBJ
System Operation: ##sys#check-fixnum ?OBJ ?LOC

Check if ?OBJ is a fixnum. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-exact ?OBJ
System Operation: ##sys#check-exact ?OBJ ?LOC

Check if ?OBJ is a exact number. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-inexact ?OBJ
System Operation: ##sys#check-inexact ?OBJ ?LOC

Check if ?OBJ is a inexact number. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-symbol ?OBJ
System Operation: ##sys#check-symbol ?OBJ ?LOC

Check if ?OBJ is a symbol. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-vector ?OBJ
System Operation: ##sys#check-vector ?OBJ ?LOC

Check if ?OBJ is a vector. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-char ?OBJ
System Operation: ##sys#check-char ?OBJ ?LOC

Check if ?OBJ is a character. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-boolean ?OBJ
System Operation: ##sys#check-boolean ?OBJ ?LOC

Check if ?OBJ is a boolean. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-locative ?OBJ
System Operation: ##sys#check-locative ?OBJ ?LOC

Check if ?OBJ is a locative. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-integer ?OBJ
System Operation: ##sys#check-integer ?OBJ ?LOC

Check if ?OBJ is a integer. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-exact-integer ?OBJ
System Operation: ##sys#check-exact-integer ?OBJ ?LOC

Check if ?OBJ is a exact integer. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-exact-uinteger ?OBJ
System Operation: ##sys#check-exact-uinteger ?OBJ ?LOC

Check if ?OBJ is a exact unsigned integer. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-real ?OBJ
System Operation: ##sys#check-real ?OBJ ?LOC

Check if ?OBJ is a real number. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-closure ?OBJ
System Operation: ##sys#check-closure ?OBJ ?LOC

Check if ?OBJ is a closure. When successful: just return unspecified values. Otherwise raise an exception of kind (exn type) using the optional argument ?LOC as exceptional–condition location property.

System Operation: ##sys#check-structure ?OBJ ?NAME ?LOC

Check if ?OBJ is a structure with name eq? to ?NAME; Low–level structures. When successful: just return unspecified values. Otherwise raise an exception with kind (exn type) using the value ?LOC as exceptional–condition location property.

System Operation: ##sys#check-range ?IDX ?FROM ?TO ?LOC

Check that ?IDX is a fixnum; if it is not: raise an exception with kind (exn type) using the value ?LOC as exceptional–condition location property.

Then check if the fixnum ?IDX is: greater than or equal to FROM and less than TO; the arguments ?FROM and ?TO must be fixnums. When successful: just return unspecified values. Otherwise raise an exception of kind (exn bounds) using the value ?LOC as exceptional–condition location property.


Next: , Up: checks   [Contents][Index]