ALGOL 68 (skip) 
Author Message
 ALGOL 68 (skip)


Quote:
>[Clay Phipps (>>) and Steven Ryan (>) are surprised that:
>    >>          begin int I := 0, K := 1;
>    >>          ref int Ptr := I;
>    >>          Ptr := K;
>    >>          Print (I);
>    >>          end
>prints 0 rather than 1.]

 Charles Lindsey replies...
 Various people have been trying to explain this one. Personally, I would write
 it as follows.

          begin
          loc int I := 0, K := 1;
          loc ref int Ptr := I;
          Ptr := K;
          Print (I);
          end
Me:
Actually Charles would not write it like that as it (really the original
version) is not syntactically correct.

-----------------------------------------------------------------
Ian Cottam, Room IT101, Department of Computer Science,
University of Manchester, Oxford Road, Manchester, M13 9PL, U.K.
Tel: (+44) 61-275 6157         FAX: (+44) 61-275-6280


-----------------------------------------------------------------



Mon, 19 Apr 1993 15:37:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. is ALGOL 68 fully functional?

2. Algol 68 design mistakes?

3. Design faults in languages other than Algol 68

4. Algol 68 literate programming

5. Algol 68 might-have-beens

6. Algol 68 design mistakes?

7. Algol 68 design mistakes?

8. Algol 68 design mistakes?

9. Algol 68 Revised Report online

10. Algol 68 syntax query

11. Algol-68

12. Linux port of the Ctrans Algol 68 compiler

 

 
Powered by phpBB® Forum Software