Yes it would be nice if it would be its own type and if we would have an 
abstract type "Enum" that the concrete enums subclass from. An enum should 
be further
compatible with Cint and not only through conversions but also when be used 
as field type (to ensure compatibility with C structs).

I further think that it would be worth introducing the "enum" keyword:

enum Direction 
  NORTH = 0
  EAST = 1
  WEST = 2
  SOUTH = 3
end

But unfortunatly I have zero scheme/parser knowledge so that I can't come 
up with a PR. Still IMHO its important to get a decision on enums rather 
quickly as they
are needed and actually used in packages (e.g. in Gtk.jl).

Reply via email to