Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
integer type returned by size
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eli Osherovich  
View profile  
 More options Mar 20 2010, 1:25 pm
Newsgroups: comp.lang.fortran
From: Eli Osherovich <eli.osherov...@gmail.com>
Date: Sat, 20 Mar 2010 10:25:42 -0700 (PDT)
Local: Sat, Mar 20 2010 1:25 pm
Subject: integer type returned by size
Is I understand correctly, 'size', and other array inquiry functions
return integer of default type.
What happens in case the result is too large to fit this type ?

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Maine  
View profile  
 More options Mar 20 2010, 1:41 pm
Newsgroups: comp.lang.fortran
From: nos...@see.signature (Richard Maine)
Date: Sat, 20 Mar 2010 10:41:32 -0700
Local: Sat, Mar 20 2010 1:41 pm
Subject: Re: integer type returned by size

Eli Osherovich <eli.osherov...@gmail.com> wrote:
> Is I understand correctly, 'size', and other array inquiry functions
> return integer of default type.
> What happens in case the result is too large to fit this type ?

See the optional kind= arguments to all the intrinsics for which that is
an issue. That is an f2003 feature, added for this exact reason. I
suspect that most f95 compilers have implemented this feature by now -
at least those compilers that can support arrays large enough for it to
be an issue.

--
Richard Maine                    | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle           |  -- Mark Twain


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Osherovich  
View profile  
 More options Mar 21 2010, 8:12 am
Newsgroups: comp.lang.fortran
From: Eli Osherovich <eli.osherov...@gmail.com>
Date: Sun, 21 Mar 2010 05:12:21 -0700 (PDT)
Local: Sun, Mar 21 2010 8:12 am
Subject: Re: integer type returned by size
On Mar 20, 7:41 pm, nos...@see.signature (Richard Maine) wrote:

> Eli Osherovich <eli.osherov...@gmail.com> wrote:
> > Is I understand correctly, 'size', and other array inquiry functions
> > return integer of default type.
> > What happens in case the result is too large to fit this type ?

> See the optional kind= arguments to all the intrinsics for which that is
> an issue. That is an f2003 feature, added for this exact reason. I
> suspect that most f95 compilers have implemented this feature by now -
> at least those compilers that can support arrays large enough for it to
> be an issue.

> --
> Richard Maine                    | Good judgment comes from experience;
> email: last name at domain . net | experience comes from bad judgment.
> domain: summertriangle           |  -- Mark Twain

Richard,
Thank you very much.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »