Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: It Hurts Wh...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 24 of 50 Topic 8152 of 8908
Post > Topic >>

Re: It Hurts When I Do This

by fj <francois.jacq@[EMAIL PROTECTED] > Apr 19, 2008 at 03:47 AM

On 18 avr, 20:32, Clive Page <j...@[EMAIL PROTECTED]
> wrote:
> In message
> <9bfddca3-b45a-4649-ab77-1f894baec...@[EMAIL PROTECTED]
>,
> GaryScott <garylsc...@[EMAIL PROTECTED]
> writes
>
> >It doesn't logically follow that to ask for a syntax for arrayness
> >requires a syntax for any other attributes.  The article makes it
> >quite clear that it is a common thought process among programmers and
> >a common pitfall.
>
> I for one don't agree.  It may be a common pitfall among programmers
> used to inferior languages such as C, C++, and Java which really don't
> sup****t much beyond simple scalar operations, but surely Fortran
> programmers are used to being able to use the name of an array and have
> it mean the entire array.  This has been standard practice in many
> statements (READ, WRITE,  PRINT, CALL, DATA, SUBROUTINE, FUNCTION, etc)
> since Fortran-II (I think), certainly since Fortran-IV/Fortran 66.
>
> The main change since then is that the whole-array notation was extended
> to every other appropriate context, and especially to expressions and
> assignments.  Of course this change came in as recently as 1990.
>
> I really don't think that a new notation is required just because some
> programmers are a bit slow to catch on to the new thought processes
> required.  Of course it doesn't help that so many other languages are
> still stuck in the scalar era.  Perhaps it's these that need a change of
> syntax?

OK, so I suppose that I belong to the family of programmers who are a
little bit slow ...

I like to use the notation (:) to distinguish arrays to scalars and I
don't agree with all the critics just because using a(:) is standard
conforming.

I was also very surprised about the problem of optimization met by
compilers. I think that replacing "a(:)" (or "a(:,: ...)") by "a" just
before parsing really the instruction is not a hard task !

Finally, using (:) or not is just a programming style and I observe
again an opposition between two families of programmers (a new war
similar to the famous one between programmers preferring indention
with two spaces or three spaces).

But I am a little bit disappointed  by the new F2003 feature about
automatic reallocation of  allocatable arrays. I think that doing
reallocation silently, just with A=B is dangerous. Why dangerous ? I
don't know ... just a feeling.

And I like the proposal of Glen to use the operator => for that
specific subject.


F. Jacq

> If they sup****ted whole-array operations, as a modern language surely
> should, the problem wouldn't arise.  :-)
>
> --
> Clive Page
 




 50 Posts in Topic:
It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 09:03:06 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 09:27:27 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 10:53:28 
Re: It Hurts When I Do This off topic
Dick Hendrickson <dick  2008-04-18 20:58:21 
Re: It Hurts When I Do This off topic
Steve Lionel <steve.li  2008-04-19 00:14:48 
Re: It Hurts When I Do This off topic
glen herrmannsfeldt <g  2008-04-18 16:39:41 
Re: It Hurts When I Do This off topic
Dick Hendrickson <dick  2008-04-19 02:03:35 
Re: It Hurts When I Do This off topic
Steve Lionel <steve.li  2008-04-19 12:21:24 
Re: It Hurts When I Do This off topic
"James Van Buskirk&q  2008-04-18 18:34:10 
Re: It Hurts When I Do This off topic
Dick Hendrickson <dick  2008-04-19 02:21:26 
Re: It Hurts When I Do This
none <none@[EMAIL PROT  2008-04-18 19:25:29 
Re: It Hurts When I Do This
Clive Page <junk@[EMAI  2008-04-18 19:32:15 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 13:03:45 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 13:14:28 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 13:54:56 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 13:12:10 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 14:43:23 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 14:24:32 
Re: It Hurts When I Do This
Dick Hendrickson <dick  2008-04-18 21:09:45 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-18 12:43:04 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 15:41:56 
Re: It Hurts When I Do This
GaryScott <garylscott@  2008-04-18 15:43:51 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-18 15:55:51 
Re: It Hurts When I Do This
fj <francois.jacq@[EMA  2008-04-19 03:47:57 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-19 08:28:07 
Re: It Hurts When I Do This
Ron Shepard <ron-shepa  2008-04-19 10:52:58 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-19 08:59:50 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 11:06:09 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-21 12:13:11 
Re: It Hurts When I Do This
Dick Hendrickson <dick  2008-04-21 19:29:02 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-21 11:52:12 
Re: It Hurts When I Do This
Dan Nagle <dannagle@[E  2008-04-21 20:25:04 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-21 15:25:50 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 11:10:27 
Re: It Hurts When I Do This
Arjen Markus <arjen.ma  2008-04-21 12:45:28 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 12:53:06 
Re: It Hurts When I Do This
Beliavsky <beliavsky@[  2008-04-21 13:05:55 
Re: It Hurts When I Do This
nospam@[EMAIL PROTECTED]   2008-04-21 15:25:50 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-21 14:58:15 
Re: It Hurts When I Do This
Steve Lionel <steve.li  2008-04-22 01:12:20 
Re: It Hurts When I Do This
glen herrmannsfeldt <g  2008-04-21 19:36:49 
Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 09:37:11 
Re: It Hurts When I Do This -- diversion...
Steve Lionel <Steve.Li  2008-04-22 11:44:31 
Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 11:28:33 
Re: It Hurts When I Do This -- diversion...
Steve Lionel <Steve.Li  2008-04-22 16:13:37 
CVF help -- was: Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 15:27:08 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
Steve Lionel <Steve.Li  2008-04-22 16:43:38 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-22 18:51:06 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
"Jugoslav Dujic"  2008-04-23 09:35:40 
Re: CVF help -- was: Re: It Hurts When I Do This -- diversion...
dpb <none@[EMAIL PROTE  2008-04-23 08:58:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 8:24:23 CST 2008.