![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <399D3001.2EE450CC@ida.utb.hb.se> , Mikael Carneholm
<sa9### [at] ida utb hb se> wrote:
> I think we are discussing apples and bananas here... On one side, it's a
> discussion about a complete source-code rewrite...on the other side, it's a
> discussion about the POV language.
Ups, you are right, we are discussing different topics here.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
: And just as another side note: What is the difference between a struct and
: a class only containing public data members...?
A struct is C. That kind of class is _AWFUL_ C++.
--
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) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <399D0A81.2F562E82@ida.utb.hb.se>, sa9### [at] ida utb hb se
wrote:
> Hmm....this looks like a good foundation for the basic "scene" object
> that I think should be the proxy class (object) for the whole scene
> in an OO-version...
Are you talking about a scripting language feature, or a start at a
design for the conversion to C++? Or both?
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Mikael Carneholm wrote:
> I don't think any POV user would like having to write
>
> #if(MyObject.getLocation()=scene.getCurrentCamera().getLookAt())
> MyObject.setLocation(fubar)
> #end
I can confirm that for you :)
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris Huff wrote:
> Are you talking about a scripting language feature, or a start at a
> design for the conversion to C++? Or both?
>
Scripting language feature mainly...but it may be suitable with a similar
structure in the code, as well...? That would require some more research,
though...just a quick sketch, that.
----------------------------------------------------
Mikael Carneholm, B.Sc.
Dep. of Computer Science and Business Administration
Personal homepage:
http://www.studenter.hb.se/~arch
E-mail:
sa9### [at] ida utb hb se
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <399d48fd@news.povray.org> , Warp <war### [at] tag povray org> wrote:
> A struct is C. That kind of class is _AWFUL_ C++.
Yes, and the compiler I use most of the time (CodeWarrior) has a nice
optional warning "inconsistent use of 'class' and 'struct' keywords" ... it
is very useful when it comes to converting C or old C++ code to clean ISO
C++ code!
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <399D54D3.1F785B88@pacbell.net> , Ken <tyl### [at] pacbell net>
wrote:
>> I don't think any POV user would like having to write
>>
>> #if(MyObject.getLocation()=scene.getCurrentCamera().getLookAt())
>> MyObject.setLocation(fubar)
>> #end
>
> I can confirm that for you :)
Hmm, what about a language more like an object oriented lisp. For example
(OK, not a great one):
set MyHouse to new house with 10 windows at <10,10,10>
for every window of MyHouse add new curtain with colour red 0.4 green 0.9
I am serious! Why would an object oriented POV scene description language
have to look like C++??? Surely not just because POV-Ray uses {} and
dot-style vector attribute access? Anybody remember DKBTrace - it used
Pascal like syntax (and there was already a skyvase.dat)!
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <399d749a@news.povray.org>, "Thorsten Froehlich"
<tho### [at] trf de> wrote:
> Hmm, what about a language more like an object oriented lisp. For example
> (OK, not a great one):
>
> set MyHouse to new house with 10 windows at <10,10,10>
> for every window of MyHouse add new curtain with colour red 0.4 green 0.9
Have you been playing with AppleScript lately? :-)
I haven't looked at lisp much, but this doesn't resemble what I have
seen of it...I thought it had a lot of parenthesis, and a generally
weird syntax? This does resemble AppleScript, though.
> I am serious! Why would an object oriented POV scene description language
> have to look like C++??? Surely not just because POV-Ray uses {} and
> dot-style vector attribute access? Anybody remember DKBTrace - it used
> Pascal like syntax (and there was already a skyvase.dat)!
So what you are suggesting would be a completely new language? Or would
this somehow fit in with the current language?
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <chrishuff-FFDA79.12564618082000@news.povray.org> , Chris Huff
<chr### [at] mac com> wrote:
> Have you been playing with AppleScript lately? :-)
Well, AppleScript is a language based on OO-Lisp research...
> I haven't looked at lisp much, but this doesn't resemble what I have
> seen of it...I thought it had a lot of parenthesis, and a generally
> weird syntax? This does resemble AppleScript, though.
Yes, parenthesis are one of the worst problems of Lisp :-) If you look at
some more recent programming language books, you will even find AppleScript
somewhere in the Lisp tree (but some it in a tree for scripting languages).
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <399d82ed@news.povray.org>, "Thorsten Froehlich"
<tho### [at] trf de> wrote:
> Well, AppleScript is a language based on OO-Lisp research...
Hmm, I didn't know that...
What do you know about Smalltalk and Objective-C?
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |