Re: Using MINLOC(array)
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Tue, 3 Apr 2007 13:58:44 -0700
Clive Page <junk@xxxxxxxxxxxx> wrote:
scalar = firstarray(MINLOC(secondarray))....
This compiled and ran successfully. I then thought that I had made a
mistake by failing to use DIM=1, without which MINLOC returns a vector
(of length one). Then I thought about it more carefully and realised
that it was ok, as I was accessing firstarray with a vector subscript
(of length one) which is valid.
Hmm. That part is valid, but then firstarray(vector_subscript) should
likewise be an array, so you have
scalar = array
which isn't ok. Unless I've got something confused, which could happen.
But I'm guessing that maybe you had a compiler than let you get by with
the nonstandard scalar=array.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: Using MINLOC(array)
- From: Clive Page
- Re: Using MINLOC(array)
- References:
- Using MINLOC(array)
- From: Matt
- Re: Using MINLOC(array)
- From: Richard Maine
- Re: Using MINLOC(array)
- From: Clive Page
- Using MINLOC(array)
- Prev by Date: Re: Using MINLOC(array)
- Next by Date: Re: Using MINLOC(array)
- Previous by thread: Re: Using MINLOC(array)
- Next by thread: Re: Using MINLOC(array)
- Index(es):
Relevant Pages
|