Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/enum.hfa

    rc333ed2 r72713e5  
    66};
    77
    8 forall(E, T| Bounded(E)) trait Serial {
     8forall(E | Bounded(E)) trait Serial {
    99    unsigned fromInstance(E e);
    1010    E fromInt(unsigned i);
     
    1313};
    1414
    15 // Opague Enum + TypedEnum
    16 forall(E, T | Serial(E, T)) trait CfaEnum {
     15forall(E, T) trait TypedEnum {
     16    T valueE(E e);
    1717    char * labelE(E e);
    1818    unsigned int posE(E e);
    19 };
    20 
    21 forall(E, T | CfaEnum(E, T)) trait TypedEnum {
    22     T valueE(E e);
    2319};
    2420
     
    3228    int ?>?(E l, E r);
    3329    int ?>=?(E l, E r);
    34 
    35     // for testing; To be removed
    36     char * typeEnumString(E e);
    3730}
Note: See TracChangeset for help on using the changeset viewer.