Since my reply didn't get appended to this thread here it is so a search will 
find it.

I'd also like to add one comment.  I deliberately avoid using the online man 
pages when programming except as a last resort.  I've got the language 
standards and use them religiously.  In this case, old f77 habit  and a common 
extension led me astray.  The reason for doing this is it prevents writing 
non-portable code w/o knowing it.  For sys admin work the man pages are the 
first resort.

BTW to the Sun folks:  lots of stuff is getting answered via email but not 
copied to the forum.  It would be nice if you could fix it so it so things sent 
to the mailing list also got appended to the proper thread here.  It would make 
searching much more productive.  I've often seen the question, but not the 
answer.


--- On Mon, 6/16/08, Alexander.Gorshenev at Sun.COM <Alexander.Gorshenev at 
Sun.COM> wrote:

> From: Alexander.Gorshenev at Sun.COM <Alexander.Gorshenev at Sun.COM>
> Subject: Re: [tools-compilers] Studio 12: ellided rand() calls in f95 w/ -xOn 
> for n >= 1
> To: "Reginald Beardsley" <pulaskite at yahoo.com>
> Cc: tools-compilers at opensolaris.org
> Date: Monday, June 16, 2008, 9:16 AM
> I took a look only at tst0.f90, but I think that the inswer
> is RTFM.
>
> man -s 3f rand

Alexander,

Thanks.  I'd like to point out that there's a bit of disagreement about the 
rand(3f) function. 

c.f.

http://www.cisl.ucar.edu/zine/96/spring/articles/3.random-3.html#90

Cray, IBM, SGI, DEC, HP and probably a few others not mentioned have/had a void 
function for rand(3f).   Which means there is a LOT of code expecting rand(3f) 
to be a void function.  I also expect the compiler to catch things like that.  
Part of the reason for me to move from f77 to f9x is better call checking.

I don't think Sun should change at this late date since it would break working 
code, but the compiler should catch it so that code ports don't fail in strange 
and interesting ways. 

Meanwhile I'll start a little compatibility library to use the C library rand().

Thanks again for your help.

Have Fun!
Reg
--
This message posted from opensolaris.org

Reply via email to