POV-Ray : Newsgroups : povray.programming : enum { SOMETHING = 'Thing' } ? : Re: enum { SOMETHING = 'Thing' } ? Server Time
3 Jul 2024 05:23:17 EDT (-0400)
  Re: enum { SOMETHING = 'Thing' } ?  
From: Thorsten Froehlich
Date: 5 Feb 2004 07:54:07
Message: <40223cef$1@news.povray.org>
In article <40222523@news.povray.org> , "AngleWyrm" 
<no_### [at] hotmailcom> wrote:

> If the enums were given specific values, it was my guess that at some point
> in the program a comparison to, or usage of those specific values would take
> place. Makes sense?

No, nobody would define enums and then not use them.  Enums are given
"names" because those mean more to a human when debugging.  Otherwise you
would always have to manually count which value you are currently dealing
with, which is insane if you are dealing with more than just a handful of
value.

    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

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