Int type actually refers to enum?

This is just a small complaint.
When I was a beginner, it took me a long time to understand that int type actually refers to enum type, rather than arithmetic type.:roll_eyes:

1 Like

dont know what exactly this mean
but ye, i remember that before i discovered that enum is just number, and int also is number

Create an Integer device, and drag the output onto other devices to find where it can attach (Just because an attachment point is not visible on drag, does not mean there is not a place it can attach. It is a Parameter device for a reason). I tested with a custom Macro, and I was able to attach the Integer device to my Macro in my own custom Integer Parameter. I also dragged that Parameter onto an Advanced Noise device and attached it to Placement. It behaved as an integer should (Even in the side panel it has a value, a minimum value, and a maximum value. All are represented as Integers).

At the end of the day, an Enum value resolves to a numeric value (Integer, by default, in C++). So, although you say “Int type actually refers to enum?”, it is actually more accurate to say “Enum values refer to Integer values, but accessing an Enum by its Integer value is possible” (That technically defeats the purpose of an Enum, though).

1 Like