Re: Type safety, C++ and code generation
- From: "REH" <spamjunk@xxxxxxxxxxx>
- Date: 27 Apr 2006 08:10:13 -0700
Maciej Sobczak wrote:
REH wrote:Not to beat a dead horse, but your logic is also flawed in that it will
http://www.msobczak.com/prog/typegen/
You maybe interested in a C++ class that I wrote.
Been there, done that:
http://www.msobczak.com/prog/downloads.html
(see safetypes.tar.gz and range.tar.gz)
I have dropped this idea because I think that the external code
generator is much more flexible and more powerful with regard to the
type safety that can be gained. Range checking is just one little part
of what is needed. Template classes are fine if you can afford limiting
yourself only to this little part, but that's not usually the case.
not detect overflows. If an operation overflows, and wraps around into
range, your code will be non-the-wiser.
REH
.
- Follow-Ups:
- Re: Type safety, C++ and code generation
- From: Maciej Sobczak
- Re: Type safety, C++ and code generation
- References:
- Type safety, C++ and code generation
- From: Maciej Sobczak
- Re: Type safety, C++ and code generation
- From: REH
- Re: Type safety, C++ and code generation
- From: Maciej Sobczak
- Type safety, C++ and code generation
- Prev by Date: Re: Type safety, C++ and code generation
- Next by Date: Re: Type safety, C++ and code generation
- Previous by thread: Re: Type safety, C++ and code generation
- Next by thread: Re: Type safety, C++ and code generation
- Index(es):