home bbs files messages ]

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,457 of 2,978   
   Marco van de Voort to winston19842005@yahoo.com   
   Re: Some miscellaneous pascal esoterica   
   25 May 07 07:09:27   
   
   From: marcov@stack.nl   
      
   On 2007-05-24, winston19842005@yahoo.com  wrote:   
   >> > when it came to pointers. I would've thought it would be trival...   
   >>   
   >> Not define it as pointer of integer/word but as pointer to array of   
   >> integer/word.   
   >   
   > That is what I was thinking. What I couldn't grok was how to determine   
   > the size of the array at compile time given that the allocation size   
   > could change.   
      
   As large as possible. Since you don't really allocate it anyway.   
      
   > Is this compiler dependent or is there a portable way?   
      
   This is fairly common for compiled versions, even of the non-Borland kind. I   
   don't know if this works with bytecode compilers.   
      
   > The books I have are more introductory and give up just shy of this   
   > material, ending about the point of linked-lists...   
      
   If you want to see "real" code, have a look at the freepascal codebase (even   
   though it is 32/64-bit protected mode)   
      
   --- 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