|
![](/i/fill.gif) |
Chris Huff <chr### [at] mac com> wrote:
: and some object-oriented features, like member
: variables/methods and simple inheritance.
If object-orientedness is ever implemented in the povray scripting language,
my opinion is that it should be done well from the beginning.
In my opinion a language that has some OO features but is only "half-OO"
is a bad idea.
It should have all the basic OO features:
- Full modularity support (which means at least public and private parts).
- Member functions and variables (if we are purists, member variables in
the public interface should be made illegal).
- Full inheritance support, which means:
- A protected part in the class (besides public and private).
- Dynamic binding (that is, virtual member functions).
- Abstract (ie. pure virtual) member functions and abstract classes
(aka. interface classes).
- A way to create instances of classes (ie. objects) and thus references
(that is, pointers).
- Class functions and class variables (usually called 'static' in many
languages).
NOTE: The fact that the language supports all those things does NOT mean
that you have to learn all those things to just make simple scenes.
NOTE 2: Read the previous note again.
NOTE 3: Please read it again.
NOTE 4: Did you read it?
--
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
|
![](/i/fill.gif) |