|
|
In article <3975DC6C.3C023FF2@itam.cas.cz>, Disnel <dis### [at] itamcascz>
wrote:
> 2) No one talked about virtual methods, although its big advantage, I
> think.
I don't think they would apply to POV-Script...their main use is when
referring to objects by pointers, and POV-Script doesn't have pointers.
I think that *all* methods would behave "virtual", separate bindings
would be useless in POV-Script.
> This is true when you don't allow changing objects after they have been
> parsed, but I think, that can be one great advantage, mainly in
> persistent animations.
I don't see what you mean...why would changing the object be a problem?
If you mean adding members to an existing variable, then don't do that!
It would be like trying to add variables and methods to a C++ class.
Just make a new object from that one, which has the additional members
you need.
If you mean modifying an object which has been placed in the scene, and
isn't a variable, then (again) don't do that! Modify the object, and
*then* put it in the scene. This will work with persistent variables
just fine...
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|