POV-Ray : Newsgroups : povray.programming : enum { SOMETHING = 'Thing' } ? : Re: enum { SOMETHING = 'Thing' } ? Server Time
3 Jul 2024 05:35:07 EDT (-0400)
  Re: enum { SOMETHING = 'Thing' } ?  
From: AngleWyrm
Date: 5 Feb 2004 02:28:51
Message: <4021f0b3$1@news.povray.org>
"ABX" <abx### [at] abxartpl> wrote in message
news:t58s1015437i6sh8q0jv9m16sm6eomafna@4ax.com...
> On Sat, 31 Jan 2004 12:42:19 -0800, "AngleWyrm"
> <no_### [at] hotmailcom> wrote:
> > 'Ctrl' is quite a bit different from what I'm used to using for
enumeration,
> > and also looks a bit like a four-byte char?
>
> 'Ctrl' is alternative notation for 32-bit integers here.

So this would be saying the same thing sleightly differently:

#define CTRL 1131704940
enum { kPOVMsgClass_RenderControl   = CTRL }

Is this numerical encoding used as an error catching mechanism during code
construction? I haven't been able to find further references to 'Ctrl'
outside the enum declaration.


Post a reply to this message

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