|
![](/i/fill.gif) |
Wlodzimierz ABX Skiba wrote:
> Chris Huff wrote in message ...
> >In article <3aed54c7@news.povray.org>, "Wlodzimierz ABX Skiba"
> ><abx### [at] abx art pl> wrote:
> >
> > > also in megapov there is inclusion of Chris Chuff which builds-in function
> > > sign() to available keywords
> >
> > Actually, it's sgn()...I was too lazy to get it to work properly with
> > "sign", which is already used elsewhere...and as far as I know, hasn't
> > been added to MegaPOV for this reason. Since it won't be in POV 3.5, you
> > might as well use a macro.
>
> I found in tokenize.c entry
> {SGN_TOKEN, "sgn"}, /*Chris Huff jan 2001*/
> then look for SGN_TOKEN in other files and found in express.c
> case SGN_TOKEN: /*Chris Huff "sign() function"*/
> then forgot about sgn() and remembered sign()
>
> but now I write:
> #version unofficial megapov 0.7;
> #warning concat(str(sgn(100),0,0),"\n")
>
> and it won't work ???
>
> > Oh, and it's Chris Huff. ;-)
>
> I try remember ;-)
> The reason is that both ("H" and "CH") have identical vocalizations in polish.
>
> ABX
Sign was originally part of the four point plane macro, but I found that version
had huge bugs. When I rewrote it the guts of the program were very different, and
I didn't need it anymore. If I thought a stupid little program I wrote in 30
seconds to save myself typing elsewhere was going to take all the attention away
from the main point of my post I wouldn't have included it. Maybe I am being
selfish, sorry, but I still don't know if I should be proud of the program I spent
hours on, because I am not completely confident that it works right.
--
Dan Johnson
http://www.geocities.com/zapob
Post a reply to this message
|
![](/i/fill.gif) |