THE PROGRAM FEATURE



THE PROGRAM FEATURE

(prog (<binding>...) <expr>...)

PROG WITH SEQUENTIAL BINDING

(prog* (<binding>...) <expr>...)

fsubr -- equivalent to (let () (block NIL (tagbody ...)))


NAMED BLOCK

(block <name> <expr>...)

fsubr


CAUSE A PROG CONSTRUCT TO RETURN A VALUE

(return [<expr>])

fsubr


RETURN FROM A NAMED BLOCK OR FUNCTION

(return-from <name> [<value>])

fsubr. In traditional Xlisp, the names are dynamically scoped. A compilation option (default) uses lexical scoping like Common Lisp.


BLOCK WITH LABELS

(tagbody <expr>...)

fsubr


GO TO A TAG WITHIN A TAGBODY

(go <sym>)

fsubr. In traditional Xlisp, tags are dynamically scoped. A compilation option (default) uses lexical scoping like Common Lisp.


DYNAMICALLY BIND SYMBOLS

(progv <slist> <vlist> <expr>...)

fsubr


EXECUTE EXPRESSIONS SEQUENTIALLY

(prog1 <expr1> <expr>...)

fsubr


EXECUTE EXPRESSIONS SEQUENTIALLY

(prog2 <expr1> <expr2> <expr>...)

fsubr


EXECUTE EXPRESSIONS SEQUENTIALLY

(progn <expr>...)

fsubr


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker