Output contract's arguements

bearophile bearophileHUGS at lycos.com
Thu Sep 19 07:44:12 PDT 2013


H. S. Teoh:

> At the very least, it would be nice to have access to x.old, as 
> Eiffel
> allegedly allows, if we insist on letting x refer to the copy 
> of the
> input value modified by the function body.

OK. But if x is a reference to a data structure, the old 
(prestate) needs to be just a shallow copy.

Bye,
bearophile


More information about the Digitalmars-d mailing list