<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Am 14.01.2018 03:42 schrieb "Ryan Joseph" <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I remember I heard about a mode switch that requires "type groups” (what are these called btw?) to use a . and be prefixed. For example:<br>
<br>
type<br>
        TGLType = (GL_FLOAT, GL_UNSIGNED_BYTE);<br>
<br>
<br>
TGLType.GL_FLOAT would be the full name (note GL_FLOAT already is declared so I want the type to be explicitly TGLType.GL_FLOAT in all cases). I need to make some wrappers around OpenGL types and I thought this would be a nice way to do it instead of declaring a bunch of constants with prefixes but I just can’t remember how to handle that dot syntax (maybe it’s in the trunk under development). Thanks.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Those types are called enumerations or enums for short, the variant that requires a point are called scoped enums and the compiler directive you're looking for is "{$scopedenums on}" and only needs to be used for declaring the enum, not when using it. As the switch is a local one you can even mix scoped and unscoped enum declarations in the same unit. The switch is available at least since 3.0.0 though it isn't mentioned in the language reference guide about enums ( <a href="https://freepascal.org/docs-html/current/ref/refsu4.html#x26-280003.1.1">https://freepascal.org/docs-html/current/ref/refsu4.html#x26-280003.1.1</a>). </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div></div>