POV-Ray : Newsgroups : povray.general : New group suggestion : Re: New group suggestion Server Time
12 Aug 2024 11:16:57 EDT (-0400)
  Re: New group suggestion  
From: Bob Crispen
Date: 8 Apr 1999 02:12:28
Message: <370C3AB6.23CDE4DA@hiwaay.net>
Lance Birch wrote:

> he he he, now can someone show it to me in ADA 95?  ;-)

Of course -- please forgive my having lost the original post,
so I have no idea what it's supposed to do, but, hey, that
never stopped me before!

with Ada.Text_IO;
procedure POVRay_Roolz is
   type Counter is ( One, Two, Three, Four, Five );
   type Other_Counter is range -128..127;
begin
   for An_Absurdly_Long_Index_Name_That_Wont_Be_Used_Anyway in
    Counter'range loop
      for Yet_Another_Silly_Index_Name in 1..Other_Counter'size loop
         Ada.Text_IO.Put ("PLEASE!!! ");
      end loop;
      Ada.Text_IO.New_Line;
   end loop;
end POVRay_Roolz;

This only puts out 5 lines.  You should contine to type in the
other 19,995 enumerations in "Counter".

You're welcome.

Or in Forth:

	: POVRAY_ROOLZ
	  2 0 DO
	    10000 0 DO
	      8 0 DO
		." PLEASE!!! "
	      LOOP
	      CR
            LOOP
          LOOP ;

The double outer loop is because Forth (at least FIG-Forth) has
16-bit values.
--
Bob Crispen
cri### [at] hiwaaynet
What a day, what a day, for an auto-da-fe.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.