Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,033 of 2,978    |
|    Dr Engelbert Buxbaum to hwrd69@yahoo.com    |
|    Re: Mismatched Array Sizes    |
|    30 Jan 06 18:25:31    |
      From: engelbert_buxbaum@hotmail.com              hwrd69@yahoo.com wrote:              > I am maintaining some legacy code (PASCAL 7) and I have run across a       > piece of code I question and am not sure how it is working and not       > crashing. There are two arrays that are created (e.g., doubles, w/2000       > elements) and a function that can act these arrays (e.g.,       > VEC_Add(resultant_array, array1, array2, num_of_elements)). But the       > function is passed a num_of_elements that is much greater than the       > actual number of elements in the array1 or 2.              Presumably the "array" is set up as a dynamic structure, where the size       is defined at run- not compile-time. If you check the SWAG-library there       are several examples how this works.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca