How do you 'or' enum entries in IronScheme, ex:
(import                                                                                                                                               
  (rnrs)                                                                                                                                               
  (ironscheme clr))                                                                                                                                    
(clr-using System.Reflection)                                                                                                                         
(define public-class-attributes                                                                                                                       
  (bitwise-ior                                                                                                                                        
    (clr-static-field-get                                                                                                                              
      TypeAttributes Public)                                                                                                                            
    (clr-static-field-get                                                                                                                              
      TypeAttributes Class)))                                                                                                                           
(display public-class-attributes)
This causes an error, I haven't found an alternative in the documentation.
 
                        
I am not sure what your use case is, but as mentioned in the comment, when using
clr-calla list of symbols can be used for an OR'd enum. Example here.Internally, the compiler will wrap the list with a call to
Helpers.SymbolToEnum<T>().Note: The case is ignored.
To illustrate in a small example:
C# code:
Scheme code:
If these are just simple flag, lists should suffice, else you can redefine the
enumas anenum-setin Scheme which allows many set operations. Finally, you just useenum-set->listto get the list to pass as an argument as shown above.