previous up next     contents index
Next: Scheme Environments Up: Scheme Values and Types Previous: Global Constants

Library Functions

 
Scheme_Object *  scheme_make_char(char ch) 

Creates a new character value.

 
Scheme_Object *  scheme_make_integer(long i) 

Creates a new integer value.

 
Scheme_Object *  scheme_make_double(double d) 

Creates a new floating-point value.

 
Scheme_Object *  scheme_make_pair(Scheme_Object *car, Scheme_Object *cdr) 

Makes a  cons pair.

 
Scheme_Object *  scheme_make_string(char *chars) 

Makes a string value from a null-terminated string pointer. A copy of chars is created.

 
Scheme_Object *  scheme_make_string_without_copying(char *chars) 

Like scheme_make_string, but the string is not copied.

 
Scheme_Object *  scheme_make_sized_string(char *chars, long len, int copy) 

Makes a string value with size len. A copy of chars is made if copy is not 0. The string chars should contain len characters; chars can contain the null character at any position.

 
Scheme_Object *  scheme_alloc_string(int size, char fill) 

Allocates a new string.

 
Scheme_Object *  scheme_append_string(Scheme_Object *, Scheme_Object *) 

Creates a new string by appending the two given strings.

 
Scheme_Object *  scheme_intern_symbol(char *name) 

Creates or finds a symbol for a null-terminated string. The case of name will be normalized.

 
Scheme_Object *  scheme_intern_exact_symbol(char *name, int len) 

Creates or finds a symbol given the symbol's length. The the case of name is not normalized.

 
Scheme_Object *  scheme_make_symbol(char *name) 

Creates an uninterned symbol from a null-terminated string.

 
Scheme_Object *  scheme_make_exact_symbol(char *name, int len) 

Creates an uninterned symbol given the symbol's length.

 
Scheme_Object *  scheme_intern_type_symbol(Scheme_Object *sym) 

Creates or finds a type symbol from a symbolic name.

 
Scheme_Object *  scheme_make_type_symbol(Scheme_Object *sym) 

Creates an uninterned type symbol.

 
Scheme_Object *  scheme_make_vector(int size, Scheme_Object *fill) 

Allocates a new vector.

 
Scheme_Object *  scheme_make_promise(Scheme_Object *expr, Scheme_Env *env) 

Creates a promise, which can be evaluated with the Scheme function  force.

 
Scheme_Object *  scheme_make_trigger() 

Creates a new trigger.

 
Scheme_Object *  scheme_box(Scheme_Object *v) 

Creates a new box containing the value v.

 
Scheme_Object *  scheme_make_weak_box(Scheme_Object *v) 

Creates a new weak box containing the value v.

 
Scheme_Type   scheme_make_type(char *name) 

Creates a new type (not a Scheme value).


previous up next     contents index
Next: Scheme Environments Up: Scheme Values and Types Previous: Global Constants

PLT