A fun, but ultimately pointless exercise from the "Python
for Fortran Programmers" thread in news:comp.lang.fortran:

Try to write the following Fortran 77 program (note the
6 space indentation) in Ruby so that it looks as close
to the Fortran as possible without extending Ruby:

       program ii
       integer i
       do i=0,10
          print*,i
          if (i.gt.5) goto 1
       enddo
1     print*,i*i
       end

Here's the Python candidate to date:

for i in range(10):
     #begin
     print i
     if i>5: break
     #end
print i*i

May an alternative solution which extends Ruby with
a mini Fortran DSL would also be interesting?

--
Bil
http://fun3d.larc.nasa.gov