home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,681 of 2,753   
   marblypup@yahoo.co.uk to Thomas Koenig   
   Re: another C-like language? was Compile   
   15 Jan 23 04:21:52   
   
   From: marb...@yahoo.co.uk   
      
   On Wednesday, 11 January 2023 at 23:07:33 UTC, Thomas Koenig wrote:   
   > Algol 58   
   > aka IAL had declarations everywere, while Algol 60 allowed them   
   > only at the beginning of blocks.   
      
   But Algol 68 allows them anywhere:   
      
   INT x:=42;   
   print(("x=",x,newline));   
   INT y:=76;   
   print(("y=",y,newline));   
   x:=y:=101;   
   print(("x=",x,newline,"y=",y,newline))   
      
   (There's something a bit weird about it in A68, though, but I can't remember   
   what.)   
   (I tend to think of A68 as "A60 made perfect... then some dubious   
   features are added". I gather it took 6 years to write the first   
   complete A68 compiler! Well, strictly speaking, they'd revised A68 by   
   then, so it was an A68R compiler.)   
      
   --- 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