Type safety, C++ and code generation



Hi,

I have developed a simple code generator that helps me significantly raise the level of type safety in C++:

http://www.msobczak.com/prog/typegen/

The whole idea was in some way inspired by Ada, so I hope to get some constructive criticism and comments from you - that's why I post it here. Please look at it from the perspective of Ada programmer.

(And taking into account the fact that some of you are also C++ programmers, you might actually find it interesting or even useful.)

--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
.



Relevant Pages

  • Re: Char type verification
    ... C programmer: What is the string terminator character in Ada? ... Ada programmer: there is none because you don't need one. ... Lisp programmer: How do I keep track of a string's length in Ada? ... strings know their bounds and you can ...
    (comp.lang.ada)
  • Re: Type safety, C++ and code generation
    ... raise the level of type safety in C++: ... Please look at it from the perspective of Ada programmer. ... Maciej Sobczak: http://www.msobczak.com/ ... overflow checked integer types. ...
    (comp.lang.ada)
  • Re: No call for Ada
    ... > argue that type safety encouraged sloppy programming: ... > One way is if the programmer is just going to churn out code and then ... > compile it again and again and again ad nauseum while the compiler ... A good apprentice of a Zen Master. ...
    (comp.lang.ada)
  • Re: How to spawn, fork, and exec within Ada (Do you have small example program)
    ... An Ada programmer that has run into a special need to do a spawn, fork, ... A C/C++ Unix programmer starting to use Ada for the first time and trying ...
    (comp.lang.ada)
  • Re: Programming Languages (WAS: Re: [opensuse] Back to 10.3 )
    ... Heh - I know a few fortran old-folgies. ... problem and told the Ada programmer how to fix it. ... I have made several attempts to learn GTK and Qt in the ...
    (SuSE)