From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: access & address
Date: Thu, 14 Oct 2004 20:17:26 +0200
Date: 2004-10-14T20:17:26+02:00 [thread overview]
Message-ID: <1982479.VT7X1MC7VE@linux1.krischik.com> (raw)
In-Reply-To: 2t7jm8F1sp752U1@uni-berlin.de
Marc A. Criley wrote:
> "Xenos" <dont.spam.me@spamhate.com> wrote:
>>
>> "Martin Krischik" <krischik@users.sourceforge.net> wrote in message
>> news:1347924.5V7QhTSfdI@linux1.krischik.com...
>> > Unlike C/C++ where you can't switch type safety on even when you
>> desperately
>> > need it.
>> >
>> You obviously know nothing about C++ then.
>
> Despite years now of professional programming with C++, I must've missed
> the compiler option that tells the compiler to verify that scalar types
> are not being confused.
> Don't tell me I can write a class to make this check, no one writes
> classes
> to keep track of item counts.
Actually I did! An Ada::Range template.
Most used type is "Ada::Natural" since most C++ programmers can't even get
int and unsigned right and sadly they do write libraries I have to use.
There is of corse a weekness:
typedef Ada::Range<int, 1, 12> Month;
typedef Ada::Range<int, 1, 12> US_Hours;
And please: I know I could use classes. But that is just another ugly hack!
And why must save and secure be an ugly hack?
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-10-14 18:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 9:05 access & address Hans Van den Eynden
[not found] ` <1347924.5V7QhTSfdI@linux1.krischik.com>
[not found] ` <ckm14i$erb2@cui1.lmms.lmco.com>
2004-10-14 18:09 ` Martin Krischik
2004-10-14 20:13 ` CBFalconer
2004-10-15 8:18 ` Martin Krischik
[not found] ` <2t7jm8F1sp752U1@uni-berlin.de>
2004-10-14 18:17 ` Martin Krischik [this message]
2004-10-14 19:52 ` Xenos
2004-10-15 8:53 ` Martin Krischik
2004-10-15 17:30 ` Xenos
2004-10-16 14:25 ` Martin Krischik
2004-10-16 15:15 ` Rich Herrick
2004-10-15 15:46 ` Björn Persson
2004-10-15 17:09 ` Xenos
2004-10-17 23:38 ` Björn Persson
2004-10-18 7:42 ` Martin Krischik
2004-10-14 19:37 ` Xenos
2004-10-15 8:30 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox