POV-Ray : Newsgroups : povray.general : Segmentation fault Server Time
2 Aug 2024 16:24:47 EDT (-0400)
  Segmentation fault (Message 11 to 19 of 19)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Thorsten Froehlich
Subject: Re: Segmentation fault
Date: 22 Oct 2004 16:53:23
Message: <41797343$1@news.povray.org>
In article <417946c2$1@news.povray.org> , Florian Brucker 
<tor### [at] torfboldcom>  wrote:

> Well, IMHO the code snippet is valid SDL.

No, it is not, you cannot return a function that way just like you cannot
pass a function that way either (well, with restrictions anyway).

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 22 Oct 2004 17:45:48
Message: <41797f8c@news.povray.org>
>> Well, IMHO the code snippet is valid SDL.

> No, it is not, you cannot return a function that way just like you cannot
> pass a function that way either (well, with restrictions anyway).

While I cannot find such a limitation mentioned in the documentation 
(It's mentioned that you cannot pass functions as macro-parameters), I 
do understand that this is the case.
My other statement about the proper treatment of syntax errors, however, 
is still valid :)

Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 22 Oct 2004 17:48:41
Message: <41798039$1@news.povray.org>
> BTW the correct way to do what you seem to be trying to do is 
> demostrated in the IsoCSG library.  What you wrote can't work although 
> it should of course not crash but return with an error.
Actually I found that error while trying to minimize a scene to show 
another bug, so it's not code I'm acutally using ;) Thanks for the tip, 
nevertheless.

Can I assume that the POV-Team knows about the bug, now, or do you want 
me to file an official bug-report?

Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Segmentation fault
Date: 22 Oct 2004 19:02:06
Message: <4179916e@news.povray.org>
Florian Brucker wrote:
...
> (It's mentioned that you cannot pass functions as macro-parameters), I 
> do understand that this is the case.
...

Can you please tell me where this is mentioned ?

(I am curious because I do this all the time.)

-- 
Tor Olav
http://subcube.net
http://subcube.com


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Segmentation fault
Date: 23 Oct 2004 03:36:33
Message: <417a0a01$1@news.povray.org>
In article <41797f8c@news.povray.org> , Florian Brucker <tor### [at] torfboldcom>
wrote:

BTW, could you please fix your clock or timezone setting?

Thanks in advance,

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Segmentation fault
Date: 23 Oct 2004 03:46:13
Message: <417a0c45@news.povray.org>
In article <41797f8c@news.povray.org> , Florian Brucker <tor### [at] torfboldcom>
wrote:

> While I cannot find such a limitation mentioned in the documentation

You have a very common misconception about the user manual here:  The user
manual is *not* a specification of how POV-Ray should behave, and neither is
the assumption that everything the manual does not explicitly forbid legal.
The user manual should only be read such that everything it explicitly says
is allowed may be used.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 23 Oct 2004 03:54:31
Message: <417a0e37$1@news.povray.org>
>> (It's mentioned that you cannot pass functions as macro-parameters)

> Can you please tell me where this is mentioned ?
> (I am curious because I do this all the time.)

Reread the specific section again, and it seems I misunderstood it 
(2.2.1.6.2 Functions and Macros). IMHO it means you're not allowed to 
pass a function's parameters to a macro like

function (a,b) {
	MyMacro(a) + MyMacro(b)
}


Sorry for the confusion,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 23 Oct 2004 04:04:45
Message: <417a109d@news.povray.org>
> You have a very common misconception about the user manual here:  The user
> manual is *not* a specification of how POV-Ray should behave, and neither is
> the assumption that everything the manual does not explicitly forbid legal.
> The user manual should only be read such that everything it explicitly says
> is allowed may be used.
I can understand that the documentation is written in such a way. 
However that is not clear, IMO, because there's a section called 
"POV-Ray Reference". From my understanding of the word "reference" 
denotes a complete explanation of something. But while I may be wrong 
here (because I'm not a native English speaker), I think that the 
following sentence, found at the beginning of chapter "2.2 Scene 
Description Language" gives the same impression:

"The reference section describes the POV-Ray scene description language. 
It is supposed to be used as a reference for looking up things. It does 
not contain detailed explanations on how scenes are written or how 
POV-Ray is used. It just explains *all* features, their syntax, 
applications, *limits*, drawbacks, etc."

This has, however, nothing to do with my original report, so I'm setting 
up a F'up2 povray.documentation.inbuilt.


Have a nice weekend,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 23 Oct 2004 04:07:22
Message: <417a113a@news.povray.org>
> This has, however, nothing to do with my original report, so I'm setting 
> up a F'up2 povray.documentation.inbuilt.
Said it, forgot it :(

Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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