Article View: comp.std.c++
Article #1499Re: Alternative to "bool*" (was: Re: From C++ to Shining C (bool))
From: Julian Pardoe LADS LDN X1428
Date: Mon, 07 Aug 1995 16:06
Date: Mon, 07 Aug 1995 16:06
18 lines
1407 bytes
1407 bytes
In article <6495210.84230.22474@kcbbs.gen.nz>, martin@kcbbs.gen.nz (Martin Kealey) writes --> BTW: Has anyone considered that under and specification-based extended integer --> range (such as proposed by Frank Farance), it is possible simply to say --> --> typedef int fast exact:1 logical_t; ..but conceptually a Boolean is not the same as an integer in the range 0..1! ...plus I'm a bit worried how these new ways of specifying integers would interact with overloading. The set of integer types becomes quite large. (Perhaps a built-in way of doing the equivalent of Ada's "T: type := new INTEGER" (or however it goes) with T becoming overloadable-on would help. I've often felt the need to say (e.g.) "a priority is an integer (but it's not compatible with a time-interval -- even though that's also an integer". Of course, one can do this already in C++, even if it's a bit tedious.) -- jP --
Technical Details
Message-ID:
<DCy7Ew.Ky3@tigadmin.ml.com>Path:
arc1-ca.pugleaf.net!in2.uu.net!psinntp!psinntp!psinntp!psinntp!commpost!usenetReferences:
<3vji4v$6sr@caip.rutgers.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++,comp.std.c Path: arc1-ca.pugleaf.net!in2.uu.net!psinntp!psinntp!psinntp!psinntp!commpost!usenet From: pardoej@lonnds.ml.com (Julian Pardoe LADS LDN X1428) Subject: Re: Alternative to "bool*" (was: Re: From C++ to Shining C (bool)) Message-ID: <DCy7Ew.Ky3@tigadmin.ml.com> Sender: usenet@tigadmin.ml.com (News Account) Reply-To: pardoej@lonnds.ml.com Organization: Merrill Lynch Europe References: <3vji4v$6sr@caip.rutgers.edu> Date: Mon, 7 Aug 1995 16:06:32 GMT