For Programmers: Free Programming Magazines  


Home > Archive > Fortran > May 2005 > Volatile and Pointer









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Volatile and Pointer
Ian Bush

2005-05-11, 8:57 am


Hi All,

Couple of quick questions about

Integer( c_int ), Dimension( :, : ), Pointer, Volatile :: ipc_ids

1) In F2003 is this legal, i.e. can I mix Volatile and Pointer ?
2) What is volatile ? The pointer or what it points at ?

Ian

Richard E Maine

2005-05-11, 4:00 pm

In article <d5soa8$4of$1@mserv2.dl.ac.uk>,
Ian Bush <I.J.Bush@nospam.dl.ac.uk> wrote:

> 1) In F2003 is this legal, i.e. can I mix Volatile and Pointer ?


Yes.

> 2) What is volatile ? The pointer or what it points at ?


Both.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
Ian Bush

2005-05-11, 4:00 pm

Richard E Maine wrote:

> In article <d5soa8$4of$1@mserv2.dl.ac.uk>,
> Ian Bush <I.J.Bush@nospam.dl.ac.uk> wrote:
>
>
> Yes.
>
>
> Both.
>


Excellent ! Just what I wanted. Thanks,

Ian


Michael Metcalf

2005-05-13, 4:10 pm


"Ian Bush" <I.J.Bush@nospam.dl.ac.uk> wrote in message
news:d5t67l$g40$1@mserv2.dl.ac.uk...
> Richard E Maine wrote:
>
>
> Excellent ! Just what I wanted. Thanks,
>

See also the example code in Section 18.3.1 of "Fortran 95/2003 Explained".

Regards,

Mike Metcalf


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com