On Wed Mar 04 14:48:16 2009, moritz wrote: > Pugs r25693 contains clarification on what should happen when a short > name of an enum value is the same as a sub name. > > 1438 Like type names, enum names are parsed as standalone tokens > 1439 representing scalar values, and don't look for any arguments. > 1440 Unlike type names which are undefined protoobjects, enums are defined > 1441 constant values. Also unlike types, they do not respond to C<.()>. > 1442 They may not be post-declared. > 1443 > 1444 our enum Maybe <OK FAIL>; > 1445 sub OK {...} > 1446 $x = OK; # certainly the enum value > 1447 $x = OK() # certainly the function > > I've added a test for that to t/spec/S12-enums/basic.t > > The first part (meaning the enum value without parens) works in Rakudo, > the second dies with > > too few arguments passed (0) - 1 params expected > current instr.: '_block325' pc 1991 (EVAL_25:554) > called from Sub '_block157' pc 2995 (EVAL_25:898) > ... > > at run time. > > Cheers, > Moritz
Moritz - I cannot find this test in this file, and no RT reference for this in t/spec/S12-enums - can you double check & add the RT to the spec test file? -- Will "Coke" Coleda