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

class sheet {#class-sheet}

A sheet object is a list of name/value pairs. Sheets are similar to records in Pascal, structures in C or frames in knowledge representation formalisms. Unlike records and structures however, sheets can be given new attributes and attributes can be deleted dynamically..

Sheets are generally used to create a single handle to a number of objects. In previous versions of PCE they where also commonly used to represent application data. The current version allows for user-defined classes, which form a much more efficient implementation of name/value pairs than sheets.

Note also that adding an attribute to an object using `Object ->attribute' is often a good alternative for using sheets. Finally, if the collection of attribute is large and lookup is more often than changing the data, class hash_table should be considered.

@see class hash_table @see object->attribute @see topic Object-level Programming @see topic Class-level Programming

Instance variables {#class-sheet-instvars}

Send methods {#class-sheet-send}

Get methods {#class-sheet-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.