| | Re: Design by Contract (long post)
|
|
(...) D'oH! Thanks, Tim. I was very careful composing the original post, but added the example in as an after thought - Well spotted. Iain. (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
|
|
| | Re: Design by Contract (long post)
|
|
(...) <delurk> The first definition of assert is the correct, standard definition. However there is a slight boo boo in the original post in the line: assert (myptr = malloc (sizeof (mystruct)); Which will delete the malloc when NDEBUG is defined. (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
|
|
| | USB Tower range
|
|
Hi, I recently bought the RCX2.0 and I am a little disappointed at the range for the USB tower. Though configured to be at long range I doubt I can implement a range greater then 5 or 6 feet. Is this normal.? Am I missing something.? Paul Reedman (21 years ago, 7-Jan-04, to lugnet.robotics.rcx)
|
|
| | Re: Design by Contract (long post)
|
|
(...) Hi Iain! (...) Cool! (...) I have a question about this: If NDEBUG is defined, shouldn't it still execute x? That is, shouldn't the code in assert.h (or wherever) be: #ifdef NDEBUG #define assert(x) (x) #else #define assert(x) if (x) else (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
|
|
| | Design by Contract (long post)
|
|
Hi, people. The reason for the flood of posts is that I've been trying to get authenticated on LUGNET for the last week :( But as you can see, I'm authenticated now :) On to the topic of this post (sorry for such a long post): I have created an (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
|