Sixth Asia-Pacific Software Engineering Conference (APSEC'99)
Sequence Operators: Specifying Behavioral Interfaces of Smalltalk Blocks
Takamatsu, Japan
December 07-December 10
ISBN: 0-7695-0509-0
The ability to treat code as data within a programming language is a powerful feature. Smalltalk introduces an object called a block that represents code as data. We propose a formal description technique to specify the behavior of Smalltalk blocks. The traditional Hoare-style pre- and postcondition technique is extended to incorporate two new predicate composition operators called a sequence operator and a sequential quantifier. The sequence operator combines two predicates by identifying the post-state of the first predicate and the pre-state of the second predicate. The sequential quantifier is an extension of sequence operator to a sequence of predicates. We illustrate our approach by using Smalltalk blocks, but the approach is not in any way Smalltalk specific. It can be applied to closures in other programming languages
Index Terms:
Program specification, specification language, block, Smalltalk, formal semantics, sequence operator
Citation:
Yoonsik Cheon, Heung-Nam Kim, "Sequence Operators: Specifying Behavioral Interfaces of Smalltalk Blocks," apsec, pp.468, Sixth Asia-Pacific Software Engineering Conference (APSEC'99), 1999