POV-Ray : Newsgroups : povray.general : 4.0 Feature discussion : Re: 4.0 Feature discussion Server Time
9 Aug 2024 15:23:02 EDT (-0400)
  Re: 4.0 Feature discussion  
From: Peter J  Holzer
Date: 10 Sep 2000 14:01:10
Message: <slrn8rni4s.5q8.hjp-usenet@teal.h.hjp.at>
On 7 Sep 2000 16:15:18 -0400, Ron Parker wrote:
>On Thu, 7 Sep 2000 22:17:53 +0200, Alessandro Coppo wrote:
>>
>>Well, with this kind of containers it would be possible to fake object
>>oriented programming. For example
>
>[...]
>
>>Having associative heterogeneous arrays + macros is all that is needed for
>>OOP in POVRay.
>
>Careful there, you'll get Warp all revved up again.  What you're talking
>about is structured programming, not OOP.

Nope. "Structured Programming" doesn't have anything to do with having a
"struct" or "record" data type (which is what Alessandro is simulating
with an associative array here). It is about having structure in the
flow of control: In structured programming each program consists of
nested blocks, each of which can only be entered at the top and left at
the bottom. Basically this forbids goto, return (except at the end of a
procedure) and alternative entry points. The habit of indenting inner
blocks is also heavily coupled with structured programming.

The opposite of structured programming is "spaghetti code".

	hp

-- 
   _  | Peter J. Holzer    | Nicht an Tueren mangelt es,
|_|_) | Sysadmin WSR       | sondern an der Einrichtung (aka Content).
| |   | hjp### [at] wsracat      |    -- Ale### [at] univieacat
__/   | http://www.hjp.at/ |       zum Thema Portale in at.linux


Post a reply to this message

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