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 1,276 of 2,978    |
|    Hanford Carr <"handycarr |
|    Re: This is terrible! TP 5.5    |
|    04 Feb 05 00:09:44    |
   
   From: "@comcast.net   
      
   RadSurfer wrote:   
   >   
   > Trust me! Even QBASIC and VisualBasicforDOS is far superior to this   
   > TPascal 5.5 nonsense!   
   >   
   > The following FAILS!   
   >   
   > Const   
   > BUFSIZ: Integer = 256; { Accepted. }   
   >   
   > type   
   > StructBuffer = record { should there be a ; here? isn't   
   > needed}   
      
   No. Not in any pascal I've seen.   
      
   > Buffer0: String[BUFSIZ]; { Illegal Expression?!?! Say What?   
   > }   
   > Buffer1: String[256]; { FAILS! String too large   
   > apparently }   
   > Buffer2: Char[256]; { Char is not a reserved word! }   
   > end;   
      
   Char is an ordinal type used to store ASCII values, so what on earth is   
   char [256] supposed to mean?   
      
   >   
   > OK: Solution?   
   > Create pointers to type "unsigned char" which can then be assigned   
   > later on   
   > to point to the actual Buffers ram-space!   
   >   
   > Sheesh!   
   >   
   > It's ALL ONE STEP in both Qbasic/vbfdos and in C !!   
   >   
   > I just might abandom this early at this rate until I can manage to   
   > find TP 7.x, or better yet BP 7.x. At least then I'll also have   
   > genuine   
   > Asm blocks, and far better Loop control!   
   >   
      
   You aren't going to like BP7 or TP7 any better because the maximum   
   possible storage of a string is 255 characters. The zero'th element of a   
   string is a byte used to indicate the length of the string. Thus   
   buffer1: string[255] is the best there is.   
      
   If all you want is to set aside an area of memory something like this   
   could be used   
      
   buffer1: array [0..4096] of char;   
      
   > this is totally rediculous!   
   >   
      
   If you keep trying to make TP5.5 act like it's C it is only going to get   
   more frustrating.   
      
   > snip   
      
   Cheers Hanford   
      
   --- 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