Map
Index
Random
Help
th

Quote: assignment by replica() assigns a copy of the parameter; example of function assignment swapping the result

topics > all references > references g-h > QuoteRef: harmDE5_1991 , p. 430



Topic:
aliasing
Topic:
safe use of pointers
Topic:
replacement as moving information

Quotation Skeleton

One use of a function assignment statement [which swaps the original value with the function's return value] achieves the effect of the usual assignment statement "x:=y" in … (y:item) returns z:item ensures y=#y and z=y [By using replica, the programmer knows there is a run-time cost. Not all data types need to have a replica function defined.]   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: aliasing (28 items)
Topic: safe use of pointers (102 items)
Topic: replacement as moving information (4 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.