POV-Ray : Newsgroups : povray.advanced-users : A macro I'm proud of I think (public Beta) : Re: A macro I'm proud of I think (public Beta) Server Time
29 Jul 2024 18:28:07 EDT (-0400)
  Re: A macro I'm proud of I think (public Beta)  
From: Wlodzimierz ABX Skiba
Date: 30 Apr 2001 09:06:45
Message: <3aed6365@news.povray.org>
Chris Huff wrote in message ...
>In article <3aed54c7@news.povray.org>, "Wlodzimierz ABX Skiba"
><abx### [at] abxartpl> 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


Post a reply to this message

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