POV-Ray : Newsgroups : povray.general : object oriented features : Re: object oriented features Server Time
28 Jul 2024 14:23:51 EDT (-0400)
  Re: object oriented features  
From: Warp
Date: 19 Aug 2000 20:35:25
Message: <399f27cd@news.povray.org>
In povray.general Mikael Carneholm <sa9### [at] idautbhbse> wrote:
:> Perhaps the best name would be "is_a".

: Errr...it's not what type of relation it is...it's what the keyword in OO-POV should
be!
: I know it's an "is a"-relation - just sketching on a suggestion for new syntax! :-)

  Well, what would be better keyword that one that describes the type of
relation it computes?

: and I guess many
: users would be irritated if they got an error saying "Not strictly correct OO used
at
: line nnn" while parsing?

  Well, they may get irritated, but in my opinion is better to teach correct
OO programming from the very beginning than trying to correct bad habits
afterwards :)

: AND - POV-Ray has always been known for it's flexible and
: (rather) forgiving syntax - let's keep it that way.

  Well, C++ is very flexible and forgiving. I like C++ because of that, but
it has the bad concecuence of teaching bad habit to beginners :)
  And I'm not saying that povray's syntax should be stricter. I really like
the fact that I can write this:

light_source { <1,2,3>, rgb <1,1,1> }

  this:

light_source { <1,2,3>, <1,1,1> }

  or this:

light_source { <1,2,3>1 }

  or even this:

light_source { x+y*2+z*3, x }

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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