Re: newcomer problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sat, 14 Nov 1998 20:50:57 +0100, Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL>
wrote:

>>To all Euphoria enthusiasts:
>>I have a multi-dimensional array, array[x][y].
>>This array is now little, but could grow up to some Mbyte.
>>During debug, when I want to know the content of a cell (example:
>array[370][41]), the answer is: "NOT DEFINED AT THIS POINT".  I can see only
>the first elements in the array by typing "array".
>>Is there a solution to overcome this?
>
>
>First of all, the actual size is dynamic, once a new cell is *initialized*
>you can use it.
>
Correct. But the message "not defined at this point" is
Euphoria's response (in the trace mode) to *any* reference
to an element of a sequence:
name = "Irv"
? name will print "Irv", whereas (in the debugger) ? name[1] will
say "not defined at this point".
What it really is saying is: Euphoria can't do that, even though
it can easily reference the same array elements programmatically.
Try this:

with trace
sequence array
array = repeat(repeat({},100),400)
trace(1)
array[371][41] = 49
? array[371][41]
-- look at array in the trace mode.

Other than sprinkling print statements thru the code, you can use
the type () function to track changes to an element of an array.

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu