Re: stack overflow with reshape and transpose
From: Richard Maine (nospam_at_see.signature)
Date: 07/03/04
- Next message: Richard Maine: "Re: What is Gerry Thomas's Contribution to NG's"
- Previous message: Gary L. Scott: "Re: What is Gerry Thomas's Contribution to NG's"
- In reply to: Janne Blomqvist: "Re: stack overflow with reshape and transpose"
- Next in thread: glen herrmannsfeldt: "Re: stack overflow with reshape and transpose"
- Reply: glen herrmannsfeldt: "Re: stack overflow with reshape and transpose"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 03 Jul 2004 08:23:05 -0700
Janne Blomqvist <jblomqvi@roskaposti.invalid> writes:
> tholen@antispam.ham wrote:
>> Along comes Fortran 90 with allocatable arrays....
>
> And now, Fortran programmers can also enjoy the thrills of memory
> leaks. ;-)
Note that allocatabhle arrays *PREVENT* memory leaks caused by programmer
errors (well, by the Fortran programmer). It is not possible to cause
a memory leak with allocatables, not matter how hard you try.
Of course, compilers can and do have bugs. Those bugs can and do
occasionally cause memory leaks. But allocatables very substantially
lower your exposure to memory leaks.
Pointers now, that's a completely different story. :-(
One of the major reasons for using allocatables is that they keep you
from having to use pointers in many applications. You do, however,
need at least the allocatable TR before allocatables are useful
enough to do this.
-- Richard Maine email: my last name at domain domain: summertriangle dot net
- Next message: Richard Maine: "Re: What is Gerry Thomas's Contribution to NG's"
- Previous message: Gary L. Scott: "Re: What is Gerry Thomas's Contribution to NG's"
- In reply to: Janne Blomqvist: "Re: stack overflow with reshape and transpose"
- Next in thread: glen herrmannsfeldt: "Re: stack overflow with reshape and transpose"
- Reply: glen herrmannsfeldt: "Re: stack overflow with reshape and transpose"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|