www.delorie.com/gnu/docs/kawa/kawa_59.html   search  
 
Buy GNU books!


Kawa, the Java-based Scheme system

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.2 Declaring Types of Variables

Syntax: let ((name [:: type] init) ...) body
Declare new locals variables with the given name, initial value init, and optional type specification type. If type is specified, then the expression init is evaluated, the result coerced to type, and then assigned to the variable. If type is not specified, it defaults to <object>.

Syntax: let* ((name [:: type] init) ...) body

Syntax: letrec ((name [:: type] init) ...) body

Syntax: define [:: type] value

See also define-private, and define-constant.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003