Re: Star Trek by Krishna Myneni
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Star Trek by Krishna Myneni         

Group: comp.lang.forth · Group Profile
Author: Krishna Myneni
Date: Sep 19, 2008 16:19

The Beez' wrote:
> On 19 sep, 19:32, Krishna Myneni ccreweb.org> wrote:
>> I will take a closer look at the code presently. But the array/matrix
>> stuff is lifted from the Forth Scientific Library (FSL). FSL arrays and
>> matrices have a starting index of zero, so if I allocated an array with
>> 3 elements, and used an index of 3, this would be an out of bounds
>> condition. Please increase the alloted array size for the array n{.
> Krishna,
>
> I have done that already, but that doesn't seem the problem. The array
> is used in this word only and you don't seem to use n{ 0 }. I think
> you mixed up the Basic indexes while converting.
>
> Hans Bezemer
>

Hans,

There may be some other bug then. I remember explicitly deciding to keep the
original Basic indices, and not subtracting 1, so that I wouldn't get confused
between the Basic origin and the FSL array origin -- you will not find "{ 0" as
a pattern in the file. Sacrificing one element, or one row and one column, is a
small price to pay for avoiding confusion in the translation. There appear to be
some instances where I initialize the 0 index elements to zero, but they should
never be used by the actual code. Can you please send me your output, and I'll
see if I can reproduce it?

Krishna
no comments
diggit! del.icio.us! reddit!