[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FORTRAN common blocks



On Tue, 17 Jan 2006, Russell Shaw wrote:

> Richard James wrote:
> > My question was why do people do it?  The question of whether is one to
> > which I already know the answer.
> 
> I haven't found anything i can't do in C easily. I couldn't imagine using
> a language without pointers. Instead of copying 100x100 arrays by value as
> a function parameter, i can just pass a pointer to it.

And nor would a fortran compiler copy an 100x100 array by value to a 
function.

> After looking at some papers on how to solve equations fast where the
> matrices are sparse, it occured to me that the authors were misguided
> by a pointerless language. Using pointers, i made a program to solve
> problems with sparse matrices as one would "by hand", which eliminates
> all kinds of possible numerical problems with "traditional" methods.

If you must use them (and yes, I used them to implement a hash in 
fortran), pointers exist in F90, F95 and F2003.

-- 
TimC
GREAT MOMENTS IN HISTORY (#7):  April 2, 1751
Isaac Newton becomes discouraged when he falls up a flight of stairs.



Reply to: