Search:

Type: Posts; User: evildave

Search: Search took 0.01 seconds.

  1. One thing that I see repeated that I should...

    One thing that I see repeated that I should correct:

    I am neither 'extending' C, nor writing a new language. I'm only using what C provides.

    The structure/class definition does one thing...
  2. Thread: My C89 RANT!

    by evildave
    Replies
    12
    Views
    3,862

    Actually, it is. You don't get sentenced for...

    Actually, it is. You don't get sentenced for '95%' murder. All or nothing. It's a C99 compiler, or it isn't. If it isn't, label it as such, not 'virtually compliant', or some such nonsense.
  3. Abuse? Imagine? I wrote the code, and did...

    Abuse? Imagine? I wrote the code, and did 'track down the bugs'. I've also 'tracked down the bugs' in past projects that did not use similar techniques to mine: the bugs were far more numerous and...
  4. Thread: My C89 RANT!

    by evildave
    Replies
    12
    Views
    3,862

    It is better to have standards that everyone can...

    It is better to have standards that everyone can quickly conform and adhere to, rather than standards that cause everyone to be '99%' compliant, because that '1%' tends to grow into a large...
  5. Share and Enjoy. As for 'no-no', actually all...

    Share and Enjoy.

    As for 'no-no', actually all preprocessor code is easier to debug than C++ template code for one simple reason. It can be piped through the preprocessor and then through...
  6. As promised (though nobody in fact cares), here...

    As promised (though nobody in fact cares), here is the 'easy' and robust way to define records that will be constructed, destructed, serialized, compared, copied, made from/into XML or database...
  7. Thread: My C89 RANT!

    by evildave
    Replies
    12
    Views
    3,862

    Whatever the C preprocessor 'was meant to do'...

    Whatever the C preprocessor 'was meant to do' from the beginning, it can do much more. It could equally be asserted that since the C standard library was build around 8 bit text and streaming I/O,...
  8. Replies
    4
    Views
    1,092

    Any assignment of this nature should have sample...

    Any assignment of this nature should have sample input and sample output.
  9. Thread: My C89 RANT!

    by evildave
    Replies
    12
    Views
    3,862

    Why not rant in the C++ forum? First, because...

    Why not rant in the C++ forum?

    First, because it's also a rant against C99. After all, it's still a moving target, as well.

    Second, it would be conspicuous trollish 'flame bait' in the C++...
  10. Looks like some sort of COM-like wrapper on top...

    Looks like some sort of COM-like wrapper on top of file IO to me.

    They may never define that structure (though you can try recursively greping for '_i_file' in the include tree). It's defined...
  11. NAQ: Everything you never wanted to know about CPP

    Also known as: Making gibberish do your work for you.

    Since it's snowing out and I have nothing better to do, I will share some horrible-looking 'best practices' for the C preprocessor here.
    ...
  12. Thread: My C89 RANT!

    by evildave
    Replies
    12
    Views
    3,862

    It's a rant. Since when's a rant supposed to...

    It's a rant. Since when's a rant supposed to have a point? Just ranting.
  13. Replies
    11
    Views
    11,387

    Aww, shucks! Well, just for all that...

    Aww, shucks! Well, just for all that back-patting...



    /* Strip white space from either end of string, return number of characters stripped */
    size_t cstr_stripwhite( cstr* self )
    {
    const...
  14. Thread: My C89 RANT!

    by evildave
    Replies
    12
    Views
    3,862

    My C89 RANT!

    I tend to use features from C89 and nothing else when I write new code. I can write classes and templates (including container templates) with structures and macros and a simple naming convention. ...
  15. Replies
    11
    Views
    11,387

    I usually tend to handle constant string parsing...

    I usually tend to handle constant string parsing with a struct, such that I maintain two endpoints. I seldom use the standard C runtime string handling, because this technique is far superior.
    ...
Results 1 to 15 of 15