Re: Was this a bug



David Flower wrote:

(snip)

Nobody seems to have picked up on my comment that m surprise was at the
program working correctly - not at it going wrong!

I noticed, but I didn't believe it. How do you know it worked
correctly? That is, that you didn't store in memory somewhere
outside the array that you were trying to store in?

Print out the appropriate values before and after the
call, in main and in the subroutine.

If you compiler has LOC, print out LOC(IARRAY) and
LOC(IARRAY(7)) before and after the CALL, and before
and after the reallocation.

This almost requires something like the ALGOL call by name, which
would be very unusual if it was even legal for Fortran.

-- glen

.



Relevant Pages

  • Re: OO versus RDB
    ... main memory storage? ... In C we can *store* data structures in memory (let's just call it ... Suppose this CAD drawing needs to persist. ...
    (comp.object)
  • Re: vb.net class
    ... about fixed array lenghts or using ReDim statements. ... code ensures everything in the array is a String because you declare it ... Count can be generated from the time list, not need to store ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Storing large number of values in 2D array
    ... array.How can I store them and retrieve them later? ... around 32 000 bytes for the 2D array. ... But that was a memory efficient solution, ... I have seen proposals to add to C ...
    (comp.lang.c)
  • Re: A challenging file to parse
    ... algorithm problem and found a Orun-time and Omemory solution, ... Do the same thing, but when storing in an array, store it at ...
    (comp.lang.c)
  • Re: Database in memory
    ... > I have a large amount of information which I store in memory. ... > this information as array of structures using CPtrArray. ... > several tables completely in memory and query it with SQL? ...
    (microsoft.public.vc.mfc)