Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type
- Color = enum
- red, orange, yellow, green, blue, indigo, violet
- macro color_test*(c: Color): typed =
- #color.intVal <- this doesn't work "f"
- #[
- what i'd like to do
- if c <= yellow: ...
- ]#
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement