POV-Ray : Newsgroups : povray.off-topic : It's a riddle : Re: It's a riddle Server Time
11 Oct 2024 05:19:52 EDT (-0400)
  Re: It's a riddle  
From: Invisible
Date: 7 Feb 2008 10:38:00
Message: <47ab25d8$1@news.povray.org>
Mike the Elder wrote:
> Orchid XP v7 <voi### [at] devnull> wrote:
>> "2.1.1 For the first 6 months of continuous employment the period of
>> notice to be given in writing by either you of the Company to terminate
>> your employment is one week's notice thereafter either party must give
>> at least four week's notice if you have been continuously employed for
>> up to four years and thereafter one additional week's notice for each
>> completed year of continuous service up to a maximum of 12 weeks' notice
>> after 12 years' service has been completed."

> #macro Find_Weeks_Notice(Years_Employed)
> 
>   #declare Weeks_Notice = 1;
> 
>   #if (Years_Employed > .5)
>     #declare Weeks_Notice = 4;
>   #end
> 
>   #if (Years_Employed > 4)
>     #declare Weeks_Notice = int(Years_Employed)
>   #end
> 
>   #if (Years_Employed > 12)
>     #declare Weeks_Notice = 12;
>   #end
> 
>   #debug concat("Weeks notice required: ",str(Weeks_Notice))
> 
> #end

OMG... That's like... sublime!

In fact, you know what? I think even *normal* people might be able to 
comprehend this code. w00t!

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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