🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3700

Re: Why "long long" doesn't work.

#3700
From: Thad Smith
Date: Fri, 11 Aug 1995 06:22
20 lines
1341 bytes
In article <409fr9$guo@goanna.cs.rmit.edu.au>,
ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) wrote:

> What's more, if the bounds of the type are _computed_ the actual
> bounds may vary from installation to installation.
> Imagine something like signed<LowExpr, HighExpr>.

I don't think that run-time-computed limits is within the spirit of C,
since it would require dynamic typing.  If you mean compile-time
determination, that's OK.  Personally, I like the Pascal syntax:

 var i: -5..100;   { Not sure of exact syntax, but do know that ..
                    specifies an integer range. }

I have used that for a Pascal compiler that used the specified range
to select the variable representation.  For packed records, similar to
C structures, it used the range specifier to determine the exact
number of bits to allocate.

Thad
Technical Details
Message-ID: <gFtKwQ9ytBBd084yn@csn.net>
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail
References: <3uvcje$c3q@goanna.cs.rmit.edu.au> <3v34qv$hev@newsbf02.news.aol.com> <3va1o3$aas@goanna.cs.rmit.edu.au> <3vq4p5$8dv@wsrcom.wsr.ac.at> <409fr9$guo@goanna.cs.rmit.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail
From: thads@csn.net (Thad Smith)
Newsgroups: comp.std.c
Subject: Re: Why "long long" doesn't work.
Date: 11 Aug 1995 00:22:00 -0600
Organization: T3 Systems
Message-ID: <gFtKwQ9ytBBd084yn@csn.net>
References: <3uvcje$c3q@goanna.cs.rmit.edu.au>
 <3v34qv$hev@newsbf02.news.aol.com> <3va1o3$aas@goanna.cs.rmit.edu.au>
 <3vq4p5$8dv@wsrcom.wsr.ac.at> <409fr9$guo@goanna.cs.rmit.edu.au>
Reply-To: ThadSmith@acm.org
NNTP-Posting-Host: 199.117.27.22