Hi,

  The following Algol program used to work in DrRacket with the language Algol 
60 selected.

begin 
   integer i;                             
   real procedure sum(j, lo, hi, term);                                         
     
      value lo, hi;                                                             
      
      integer j, lo, hi;                                                        
      
      real term;                                                                
      
      comment term is passed by-name;                                           
      
   begin                                                                        
      
      real temp;                                                                
      
      temp := 0;                                                                
      for j := lo step 1 until hi do                                            
      
         temp := temp + term;                                                   
      
      sum := temp                                                               
      
   end;  
   i := 1;                                                                      
      
   printnln(sum(i, 1, 100, i))                                                  
     
end          


  Now it gives the following error.

for-body96339: unbound identifier;
 also, no #%top syntax transformer is bound in: for-body96339

  Has something changed?  It does seem to work in Racket with a #lang directive, and simpler Algol 60 programs do work in Algol 60 mode.  Why should this be?

  Thanks.

-Arthur


==============================================================
Arthur Nunes-Harwitt
Computer Science Department, Rochester Institute of Technology
Room 70-3509
585-475-4916
==============================================================

"I don't know what the language of the future will be
called, but it will look like LISP."

This email is confidential and intended for the named recipient(s). In
the event the email is received by someone other than the recipient,
please notify the sender at a...@cs.rit.edu.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to