ERights Home elang / kernel 
Back to: Methodical Object Expression x On to: FinalPattern

Plumbing Expression


The plumbing expression is an experimental form of object expression for giving programmers greater control of the semantics the objects they define, and the price of less convenience and support. It is an experimantal feature of E whose semantics aren't quite settled yet. Use at your own risk.

In response to an incoming message to a plumbing object (an instance of a plumbing expression) the message becomes the specimen the matcher's pattern is to be matched against, and the matcher is executed.

BNF:
["/**" docComment
  "*/"] "def" (String | "_") auditors matcher
XML DTD:
See Object Expression
Java:
A plumbing expression compiles into a Java class that "extends Plumbing", and the matcher turns into an implementation of the callAll() method.
Example:
 
in Kernel-E:
 
in XML:
 
in Java:
 

x
 
Unless stated otherwise, all text on this page which is either unattributed or by Mark S. Miller is hereby placed in the public domain.
ERights Home elang / kernel 
Back to: Methodical Object Expression x On to: FinalPattern
Download    FAQ    API    Mail Archive    Donate

report bug (including invalid html)

Golden Key Campaign Blue Ribbon Campaign