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

class binding {#class-binding}

Name/Value pair used to pass named arguments to methods. A binding is written as Name := Value and is recognised by send_method ->send when it scans an argument list, allowing the caller to skip optional arguments by name. See send_method ->send for the full argument binding rules.

The following example creates a menu_item named help whose end_group slot is set via a binding rather than by positional arguments:

?- new(X, menu_item(help, end_group := @on)).

@see send_method->send

Instance variables {#class-binding-instvars}

Send methods {#class-binding-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.