POV-Ray : Newsgroups : povray.programming : enum { SOMETHING = 'Thing' } ? : Re: enum { SOMETHING = 'Thing' } ? Server Time
3 Jul 2024 06:15:34 EDT (-0400)
  Re: enum { SOMETHING = 'Thing' } ?  
From: Christoph Hormann
Date: 31 Jan 2004 16:16:04
Message: <muhte1-ch6.ln1@triton.imagico.de>
AngleWyrm wrote:
> This syntax is new to me:
> 
> /* POV-Ray Message Classes */
> enum
> {
>  kPOVMsgClass_RenderControl   = 'Ctrl',
>  kPOVMsgClass_RenderOutput   = 'Outp',
>  kPOVMsgClass_IniOptions    = 'IniO',
>  kPOVMsgClass_Miscellaneous   = 'Misc'
> }; //           How does this work ? --^^^^^
> 
> '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?
> 

These are multicharacter character constants but they do not need to 
bother you.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 11 Jan. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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