|
![](/i/fill.gif) |
In article <39747AD8.E2567B43@itam.cas.cz>, Vaclav Cermak
<dis### [at] itam cas cz> wrote:
> just an idea: imagine, that POV language is object-oriented,
> so for example sphere can be defined something like:
...
> Any ideas?
This has been discussed many times, you might want to look at those
discussions. There was one big one which started out in povray.general.
The biggest problem with your syntax is that it would require a complete
redesign of the POV language, and everyone would have to re-learn it.
This isn't necessary, object-oriented features could be added to the
existing language, and still support old scenes and people writing in
the older style. For one thing, the dot operator is already used to
access the components of vectors and colors, it makes sense to use it to
access member variables and macros. Much more sense than to use the
"less than" operator.
A form of inheritance could be done by having every copy of an object
get independant copies of its parent's members.
--
Christopher James Huff - Personal e-mail: chr### [at] mac com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |