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,525 of 2,978   
   pgx@pgrahams.com to news.ntlworld.com   
   Re: turbo pascal 4.5   
   10 Sep 07 19:26:51   
   
   "news.ntlworld.com"  wrote:   
      
   |i haven't ignored any of you - i tried version 5.5 and the syntax of the   
   |language has changed between version 4 and 5.5 - i admit 4.5 must have been   
   |a mistake as you all say 4.5 didn't exist but it was definitely 4...   
   |   
   |i have loaded the code in and even simple lines, for instance after defining   
   |"function colour(colourparam :byte) :byte;" which the compiler passes   
   |perfectly it fails in the implementation stage at:   
   |   
   |function colour(colourparam :byte); <- it says it expects a : instead of the ;   
      
   The syntax that is correct is:   
      
   function colour;   
      
   You can omit the paramaters in the function or procedure declaration,   
   but you must omit them all (this is in BP7, the only one I still have   
   available).  If you specify any parameters, they must match the   
   original exactly.   
      
   As mentioned in another post, this may have been allowed in error in   
   whatever TP version you used.   
      
   It is the same in Delphi.   
      
   Phil   
      
   --- 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