How do I access to static fields?

Mar 18, 2013 at 2:39 AM
I should to know enum (integral) values when I call functions which take enum parameters. But it is intractable to obtain the values because they are defined as static fields. While static properties can be accessed to if I use special methods named get_SomeProperty and set_SomeProperty via clrCallStatic, static fields cannot be accessed to.

I think there are some solutions to obtain static fields:
  1. rClr exports some function like clrGetStaticField (this may be the best)
  2. Modified as clrGetField can take type names instead of instances (may be confusing)
  3. No change, users should implement a wrapper method to return static fields (not user-friendly)
What do you think?

Mar 27, 2013 at 8:37 PM
Hi Kosei,

Indeed this is a missing feature, probably indispensable for enums. I'll add it and release as soon as possible. I am in the middle of changes to the build process for CRAN submission but can backtrack/branch for a beta4.
I was away for the past week apologies for the delay in the reply