Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: precondition and post condition check Pin
Stephen Hewitt16-Mar-08 20:05
Stephen Hewitt16-Mar-08 20:05 
GeneralRe: precondition and post condition check Pin
George_George16-Mar-08 20:14
George_George16-Mar-08 20:14 
GeneralRe: precondition and post condition check Pin
Stephen Hewitt16-Mar-08 20:23
Stephen Hewitt16-Mar-08 20:23 
GeneralRe: precondition and post condition check Pin
George_George16-Mar-08 20:48
George_George16-Mar-08 20:48 
QuestionRe: precondition and post condition check Pin
CPallini16-Mar-08 22:59
mveCPallini16-Mar-08 22:59 
GeneralRe: precondition and post condition check Pin
Stephen Hewitt17-Mar-08 13:05
Stephen Hewitt17-Mar-08 13:05 
GeneralRe: precondition and post condition check Pin
CPallini17-Mar-08 22:07
mveCPallini17-Mar-08 22:07 
GeneralRe: precondition and post condition check Pin
CPallini16-Mar-08 22:38
mveCPallini16-Mar-08 22:38 
Well, if I state it is a precondition then I don't check it (i.e. I may check it in Debug build, not in Release one).


BTW approach (1) is possibly better because it frees Derived class methods from implementing checking logic (I mean, using approach (2) you must remember to call foo(i) and this is not good expecially if Derived class developer is not the same person who designed Base class).
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: precondition and post condition check Pin
George_George16-Mar-08 22:48
George_George16-Mar-08 22:48 
GeneralRe: precondition and post condition check Pin
CPallini16-Mar-08 22:50
mveCPallini16-Mar-08 22:50 
GeneralRe: precondition and post condition check Pin
George_George16-Mar-08 22:53
George_George16-Mar-08 22:53 
GeneralGeorge, again in the recursive trap Pin
CPallini17-Mar-08 22:11
mveCPallini17-Mar-08 22:11 
GeneralRe: George, again in the recursive trap Pin
George_George17-Mar-08 22:23
George_George17-Mar-08 22:23 
GeneralRe: George, again in the recursive trap Pin
CPallini17-Mar-08 22:41
mveCPallini17-Mar-08 22:41 
GeneralRe: George, again in the recursive trap Pin
George_George17-Mar-08 23:29
George_George17-Mar-08 23:29 
GeneralRe: George, again in the recursive trap Pin
CPallini18-Mar-08 0:39
mveCPallini18-Mar-08 0:39 
GeneralRe: George, again in the recursive trap Pin
George_George18-Mar-08 1:02
George_George18-Mar-08 1:02 
GeneralRe: George, again in the recursive trap Pin
CPallini18-Mar-08 1:34
mveCPallini18-Mar-08 1:34 
GeneralRe: George, again in the recursive trap Pin
George_George18-Mar-08 1:50
George_George18-Mar-08 1:50 
Generalcall base class function or derived class function Pin
George_George16-Mar-08 16:03
George_George16-Mar-08 16:03 
GeneralRe: call base class function or derived class function Pin
Rajkumar R16-Mar-08 19:15
Rajkumar R16-Mar-08 19:15 
GeneralRe: call base class function or derived class function Pin
George_George16-Mar-08 19:49
George_George16-Mar-08 19:49 
GeneralRe: call base class function or derived class function Pin
Rajkumar R16-Mar-08 21:02
Rajkumar R16-Mar-08 21:02 
GeneralRe: call base class function or derived class function Pin
George_George16-Mar-08 21:22
George_George16-Mar-08 21:22 
GeneralRe: call base class function or derived class function Pin
Rajkumar R16-Mar-08 21:43
Rajkumar R16-Mar-08 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.