[nem-en] raw taken and parsing parameters

Kamil Dworakowski kamil.dworakowski at googlemail.com
Mon Mar 19 22:51:44 CET 2007


I am capitalizing on the custom members extension we made some time ago. 
Below is an
example of an advice. I use the parse_parameters method of the 
MainParser to parse parameters of an advice (the one in the parentheses 
after the 'after' keyword). The parse_parameters expects a RoundGroup 
containing LooseGroups, but what I get here is a RoundGroup containing 
RoundGroups. I got around it by changing RoundGroups into LooseGroups, 
and it works at least for simple cases like this one. What causes the 
incompatibility?

after(parm: float) returning: execution(Foo.*(..): void ) && args(parm,..) {
        if (parm == 1.0f)
            print("advice\n");
        else
            print("error");
    }

Kamil Dworakowski



More information about the devel-en mailing list