Re: Delphi Conversion of "C" enum



I think you're confusing enumerated values and "sets" of such values.
Sets are defined by square brackets enclosing enumerated values. So
square brackets are neccessary only where a "set" is declared as the
type of that variable.

The variable I was referring to is a value, not a set. But thanks for
replying.

If you're unsure about sets, then they are worth looking into,
particularly if you are involved in issues where individual bits are
set as flags.

Alan Lloyd

.



Relevant Pages

  • Re: Building SQL query when table is two words...
    ... You use Square Brackets and you think this is Truth. ... SELECT * FROM `All Students` ... Prev by Date: ...
    (comp.databases.ms-access)
  • Re: casting Object to byte array
    ... > The problem was I was not adding the square brackets in my casting and was ... Jon Skeet - ... If replying to the group, please do not mail me too ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Fatal error: Function name must be a string
    ... but in PHP we use square brackets for ... array indices, thus: ... Steve ... Prev by Date: ...
    (alt.php)
  • Re: Culverins
    ... Entro, as was listed in square brackets in the subject header. ... Prev by Date: ...
    (rec.games.roguelike.angband)