Copying and swapping: influences on the design of reusable softwarecomponents
Harms, D.E.
Weide, B.W.
Dept. of Math. & Comput. Sci., Muskingum Coll., New Concord, OH;
This paper appears in: Software Engineering, IEEE Transactions on
Publication Date: May 1991
Volume: 17,
Issue: 5
On page(s): 424-435
ISSN: 0098-5589
References Cited: 23
CODEN: IESEDJ
INSPEC Accession Number: 3980814
Digital Object Identifier: 10.1109/32.90445
Current Version Published: 2002-08-06
Abstract
The authors argue that a simple alternative to copying as a data
movement primitive-swapping (exchanging) the values of two variables-has
potentially significant advantages in the context of the design of
generic reusable software components. Specifically, the authors claim
that generic module designs based on a swapping style are superior to
designs based on copying, both in terms of execution-time efficiency and
with respect to the likelihood of correctness of client programs and
module implementations. Furthermore, designs based on swapping are more
reusable than traditional designs. Specific arguments and examples to
support these positions are presented
Index
Terms
Available to subscribers and IEEE members.
References
Available to subscribers and IEEE members.
Citing Documents
Available to subscribers and IEEE members.