|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - postconditions?
Is there any way to do tests on out/inout stuff that gets changed in functions in the function postconditions? Although I guess you can use other contracts to get around this lack, I think that it would be nice to be able to test them in the postcondition code, so that all of the tests for the functions are in the same place. Evan Dec 18 2002
Evan McClanahan wrote:Is there any way to do tests on out/inout stuff that gets changed in functions in the function postconditions? Although I guess you can use other contracts to get around this lack, I think that it would be nice to be able to test them in the postcondition code, so that all of the tests for the functions are in the same place. Evan Dec 18 2002
Yes, just put the assert's in the out { } block.
"Evan McClanahan" <evan dontSPAMaltarinteractive.com> wrote in message
news:atq57d$2nr6$1 digitaldaemon.com...
Dec 18 2002
Walter wrote: Dec 19 2002
|