src/swipl-devel/packages/xpce/man/refmanual/md/progn.md

class progn {#class-progn}

A progn object describes a sequence of statements (code objects) from which the last must be a function object. The return value of the progn (as a function) is the return value of the last function object.

The execution of the progn fails immediately when one of the statements or the terminating function fails.

Progn (including its name) is inspired by LISP. See also class and, class block and class when.

@see class and

Instance variables {#class-progn-instvars}

Send methods {#class-progn-send}

Get methods {#class-progn-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.