472,957 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,957 software developers and data experts.

Most restrictive type

Ref: K&R section 8.7

..... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?

Vijay
Nov 14 '05 #1
6 1925
>Ref: K&R section 8.7

.... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?


No, I don't think you're guaranteed that. It might be long double
or a pointer type. There are probably a lot of implementations
where double and long long are equally restrictive and the same
size, and long double is not more restrictive than double.

Gordon L. Burditt
Nov 14 '05 #2
go***********@burditt.org (Gordon Burditt) wrote:
Ref: K&R section 8.7

.... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?


No, I don't think you're guaranteed that. It might be long double
or a pointer type. There are probably a lot of implementations
where double and long long are equally restrictive and the same
size, and long double is not more restrictive than double.


And I think the most restrictive integer type is intmax_t, which may be
larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.

Richard
Nov 14 '05 #3
In <2h************@uni-berlin.de> "Vijay Kumar R Zanvar" <vi*****@globaledgesoft.com> writes:
Ref: K&R section 8.7

.... so for a C99 complying implementation, if I've understood
correctly, the most restrictive type is long long?


There is no way to tell. For a good guess, create an union containing
all integer types, all floating point types, a void pointer and a
function pointer and use it as the most restrictive type.

Of course, there is still the possibility that the most restrictive type
is an extended integer type, but this should not matter to portable code.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #4
In <40****************@news.individual.net> rl*@hoekstra-uitgeverij.nl (Richard Bos) writes:
go***********@burditt.org (Gordon Burditt) wrote:
>Ref: K&R section 8.7
>
>.... so for a C99 complying implementation, if I've understood
>correctly, the most restrictive type is long long?


No, I don't think you're guaranteed that. It might be long double
or a pointer type. There are probably a lot of implementations
where double and long long are equally restrictive and the same
size, and long double is not more restrictive than double.


And I think the most restrictive integer type is intmax_t, which may be
larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.


What makes you think that intmax_t needs to be at least as restrictive
as long double or a pointer type?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #5
>>And I think the most restrictive integer type is intmax_t, which may be
^^^^^^^
larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.


What makes you think that intmax_t needs to be at least as restrictive
as long double or a pointer type?


long double and pointers are *INTEGER* types?

Gordon L. Burditt
Nov 14 '05 #6
In <c9********@library2.airnews.net> go***********@burditt.org (Gordon Burditt) writes:
And I think the most restrictive integer type is intmax_t, which may be ^^^^^^^larger and (AFAICT) more restrictive than long long. Though the word
"restrictive" does not occur in this sense in the Standard.


What makes you think that intmax_t needs to be at least as restrictive
as long double or a pointer type?


long double and pointers are *INTEGER* types?


You've snipped a bit too much. The OP didn't limit his question to
integer types, therefore it makes no sense to talk about the most
restrictive integer type.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Adrian B. | last post by:
Does anyone know of a framework or library that will enable me to use publish/subscribe comms? I want to create a server (using Python) running on a Unix box that will accept client connections...
3
by: Grahammer | last post by:
Is it just me, or is VB.Net much more restrictive than VB6? For example... I'm trying to build a control that will check a POP3 email account for mail and allow the user to enter POP commands...
122
by: seberino | last post by:
I'm interested in knowing which Python web framework is most like Ruby on Rails. I've heard of Subway and Django. Are there other Rails clones in Python land I don't know about? Which one...
4
by: Will Ware | last post by:
Python has no inherent provision for a restrictive API that blocks accesses to methods and variables outside an allowed set. Inexperienced Python programmers may fail to adhere to an agreed-upon...
21
by: py_genetic | last post by:
Hello, I'm importing large text files of data using csv. I would like to add some more auto sensing abilities. I'm considing sampling the data file and doing some fuzzy logic scoring on the...
11
by: Stevo | last post by:
I've been using the unload event for a long time. I have this code, which I've abstracted and made into a stripped down simple test case below, and it works fine on the major browsers (IE5+,...
3
by: Mark A | last post by:
At first glance it seems like a good idea to use the new RESTRICTIVE option when creating a database to remove public access otherwise granted by default. Then one could grant the required access...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.