Title :
Sequence operators: specifying behavioral interfaces of Smalltalk blocks
Author :
Cheon, Yoonsik ; Kim, Heung-Nam
Author_Institution :
Dept. of Real-time Comput., ETRI Comput. & Software Technol. Labs., Taejon, South Korea
Abstract :
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
Keywords :
Smalltalk; formal logic; formal specification; object-oriented programming; programming theory; specification languages; user interfaces; Hoare-style; Smalltalk blocks; behavioral interface specification; formal description technique; postcondition technique; predicate composition operators; programming language; programming languages; sequence operator; sequence operators; sequential quantifier; Computer interfaces; Computer languages; Contracts; Data structures; Formal verification; Laboratories; Natural languages; Runtime; Software; Specification languages;
Conference_Titel :
Software Engineering Conference, 1999. (APSEC '99) Proceedings. Sixth Asia Pacific
Conference_Location :
Takamatsu
Print_ISBN :
0-7695-0509-0
DOI :
10.1109/APSEC.1999.809638