POV-Ray : Newsgroups : povray.advanced-users : Object Oriented POV code : Re: Object Oriented POV code Server Time
29 Jul 2024 16:19:13 EDT (-0400)
  Re: Object Oriented POV code  
From: Andrew C on Mozilla
Date: 22 Feb 2004 07:13:48
Message: <40389cfc@news.povray.org>
>>I wouldn't care for this. Think of vector member access...vec.x, vec.y, 
>>etc...vec.x() just adds more visual noise.
> 
>   If you read my article completely I suggested adding support for calling
> member functions without parentheses (supposing they don't take parameters).
> There's nothing problematic with that.

Eiffel does this...

(Can be slightly confusing at times... but then, so can most things!)

Not sure what you do about vec.x := 7... (But then, for certain objects 
it might be that you can't change one attribute without changing another 
as well... can't think of a good example right now...)


Post a reply to this message

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