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 1,263 of 2,978   
   Marco van de Voort to Erwann ABALEA   
   Re: C/CPP to TP 5.5   
   02 Feb 05 08:37:36   
   
   From: marcov@stack.nl   
      
   On 2005-02-02, Erwann ABALEA  wrote:   
   >   
   > Turbo Pascal has a "better" file abstraction than standard C. In TP, a   
   > file can be typed (File of xxx, you then read or write elements of type   
   > xxx), or typeless (simply a File, and you perform BlockRead and   
   > BlockWrite that operate on octets).   
      
   IIRC untyped files are by default 128 byte blocks. Don't forget to set this   
   to "1" by adding ,1 to the reset/rewrite statement (reset(f,1);)   
      
   > But when it comes to developing for other platforms than DOS on a PC, or   
   > working with a set of other developers, TP is out. In fact, I don't   
   > program in TP anymore, even on my old DOS machines, I do C.   
      
   > That answers the first question: you can do whatever you want in TP, the   
   > language doesn't limit you to anything, but you'll be alone on obsolete   
   > machines.   
      
   Just like when you move from a 16-bit C to a different C compiler on a more   
   modern system (and even can use 32-bit C on dos), you can do this with Pascal   
   too, and go to FPC or VP or Delphi.   
      
   --- 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