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

class hyper {#class-hyper}

A hyper object is a named binary link between two objects. Where slot-references and attribute relations are uni-directed, a hyper may be regarded a two-way object ->attribute. Hypers are used for two purposes:

As an example of the second case, consider an application that creates a secondary window to allow for editing some object of the main window. If the user is allowed to work in both window and destroy both windows separately, a hyper is a suitable way to maintain the relation between both windows.

The most important behaviour dealing with hypers is defined on class object:

| `object ->send_hyper` | Broadcast a message over hypers |
| `object <-get_hyper`  | Idem to get information         |
| `object <-hypered`    | Find hyperlinks from object     |

@see class constraint @see class interceptor @see object<-all_hypers

Instance variables {#class-hyper-instvars}

Send methods {#class-hyper-send}



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.