Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Error in MIN and MAX
Date: Mon, 31 May 2010 07:52:03 -0500
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <hu0bht$f6f$1@news.eternal-september.org>
References: <htrjji$34i$1@fred.mathworks.com> <hts20o$vt$1@fred.mathworks.com> 	<htt5bg$fli$1@fred.mathworks.com> <httm7f$14t$1@fred.mathworks.com> 	<httojr$f0t$1@news.eternal-september.org> <3923b2b7-b987-42bf-bcfa-6ed2c29ed13a@u20g2000pru.googlegroups.com> 	<htujp2$oh0$1@news.eternal-september.org> <c4d75620-d4e1-442f-9874-d57e22f9a49e@o39g2000vbd.googlegroups.com> <hu0abs$62n$1@news.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 May 2010 12:54:23 +0000 (UTC)
Injection-Info: mx02.eternal-september.org; posting-host="7Fjgbo+dxw6JaYE13eb5CA";
	logging-data="15567"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19ZrIAc1tJCH2m7gKae2k2G"
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
In-Reply-To: <HIDDEN>
Cancel-Lock: sha1:GfsR0zqpzLzeX0KFB754jtZxIsg=
Xref: news.mathworks.com comp.soft-sys.matlab:640869

dpb wrote:
...

>> Because you said "if one comes from Fortran [...] it permissible..."
>> but without stating what language you ara discussing. You have worked
>> with fortran, I have not. Indicating that you could use these
>> techniques in any other language, wheras I can not.
>>
>> It's a ridiculous statement, so I wonder if you really mean it.
> 
> _WHAT_???  How else could one think of anything except Matlab as that 
> was what the subject was about and simply a reference to a user who had 
> Fortran experience?
> 
> And, what statement is ridiculous in your view and why is it so?  I 
> meant (and still mean) everything I said; there may be a 
> misunderstanding here, I expect there is.

...

OK, it dawned on me where the problem lies...it's in the snipping that's 
the clue.

First, it seemed clear to me that by saying "if one comes from Fortran" 
that the implication is that the "where" something is permissible refers 
to Fortran syntax/rules.  What you snipped was (and is) pertinent in 
that it states that Fortran parsing is such that a function reference 
and array reference of the same spelling (name) in the same compilation 
unit (program/subroutine/function) are discernible from each other 
(don't occupy same name space).  That was contrasted to the problem 
under discussion of Matlab where specifically min() and max() were 
aliased by being used a variables hence aliasing the Matlab functions of 
the same name.  That aliasing wouldn't happen in Fortran even if one 
made an array named one of these to hold the column-wise minimums 
(although I went on to say I wouldn't consider it good practice to do so).

That help???

--